From 9b72666f78c3f7b4c12543db0d4da6853c48e1eb Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 12 Apr 2026 17:17:25 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20GAZE=5FCENTER=20ordering=20=E2=80=94=20mu?= =?UTF-8?q?st=20be=20defined=20before=20use?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- headmic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headmic.py b/headmic.py index 0fdfdfe..a5f1c48 100644 --- a/headmic.py +++ b/headmic.py @@ -397,8 +397,8 @@ def sound_classifier_loop(): from spatial import SpatialTracker spatial_tracker: Optional[SpatialTracker] = None -_last_gaze_push: tuple[int, int] = (GAZE_CENTER, GAZE_CENTER) 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_INTERVAL = 0.1 # max 10 gaze pushes/sec to eye service