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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user