Switch move buttons to use jog

This implements a nicer version of jogging, with a defined interval of 1/3 second. This can be tuned depending on what we think makes sense.

It might be good to re-use this for handling keypresses.
This commit is contained in:
Richard Bowman 2026-02-11 00:24:40 +00:00 committed by Julian Stirling
parent abda60adf6
commit 9ed850cc68
3 changed files with 60 additions and 12 deletions

View file

@ -366,7 +366,9 @@ class SangaboardThing(BaseStage):
will terminate, and `self._jog_received` will be set again. This means that
it should be safe to
"""
duration = 1 # How long to wait initially. This shouldn't ever need to be long.
duration = (
1.0 # How long to wait initially. This shouldn't ever need to be long.
)
# On subsequent loop iterations, we'll wait long enough that we expect the last
# move to have finished.
previous_command: Optional[JogCommand] = None