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