Fix ITD angle wrapping past 360°
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user