From 8073e3eb02823ad152ac5a9ecfd832e4ef98bf11 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 12 Apr 2026 21:52:07 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20ITD=20angle=20wrapping=20past=20360=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- spatial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spatial.py b/spatial.py index 80249b0..6e35221 100644 --- a/spatial.py +++ b/spatial.py @@ -124,6 +124,7 @@ class SpatialTracker: itd_angle, self._last_itd_samples = itd_result self._smooth_itd_angle += SMOOTHING_ALPHA * ( self._shortest_angle_diff(itd_angle, self._smooth_itd_angle)) + self._smooth_itd_angle %= 360 # keep in 0-360 if pos and any_vad: # Smooth the position