Fix GAZE_CENTER ordering — must be defined before use

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alex
2026-04-12 17:17:25 -05:00
parent e0a4af031f
commit 9b72666f78

View File

@@ -397,8 +397,8 @@ def sound_classifier_loop():
from spatial import SpatialTracker from spatial import SpatialTracker
spatial_tracker: Optional[SpatialTracker] = None spatial_tracker: Optional[SpatialTracker] = None
_last_gaze_push: tuple[int, int] = (GAZE_CENTER, GAZE_CENTER)
GAZE_CENTER = 127 GAZE_CENTER = 127
_last_gaze_push: tuple[int, int] = (GAZE_CENTER, GAZE_CENTER)
GAZE_PUSH_MIN_DELTA = 3 # don't push gaze unless it moved by at least this much GAZE_PUSH_MIN_DELTA = 3 # don't push gaze unless it moved by at least this much
GAZE_PUSH_INTERVAL = 0.1 # max 10 gaze pushes/sec to eye service GAZE_PUSH_INTERVAL = 0.1 # max 10 gaze pushes/sec to eye service