From 4d5a9eed3dd30138e6f28a3e0778e8bb3f000719 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu <sam@rfc1149.net> Date: Fri, 19 Jul 2024 01:04:45 +0200 Subject: [PATCH] showencoders.py: read encoders once to reset them --- controller/python/showencoders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/python/showencoders.py b/controller/python/showencoders.py index 505e369..3126391 100644 --- a/controller/python/showencoders.py +++ b/controller/python/showencoders.py @@ -6,6 +6,9 @@ from controller import Controller c = Controller() +# Reset encoders +c.get_encoder_ticks() + left, right = 0, 0 while True: dl, dr = c.get_encoder_ticks() -- GitLab