Update dec.py

This commit is contained in:
Kumar
2025-01-16 22:54:46 -07:00
committed by rav4kumar
parent 01e06df542
commit 3f29ccbd99
+4 -4
View File
@@ -99,16 +99,16 @@ class DynamicExperimentalController:
# Replace WMAC with FOF
self._has_lead_filtered_prev = False
self._lead_fof = FirstOrderFilter(x0=0.0, rc=0.8, dt=DT_MDL) # Adjust rc for filtering
self._lead_fof = FirstOrderFilter(x0=0.0, rc=1, dt=DT_MDL) # Adjust rc for filtering
self._has_lead_filtered = False
self._slow_down_fof = FirstOrderFilter(x0=0.0, rc=0.8, dt=DT_MDL)
self._slow_down_fof = FirstOrderFilter(x0=0.0, rc=1, dt=DT_MDL)
self._has_slow_down: bool = False
self._slowness_fof = FirstOrderFilter(x0=0.0, rc=0.8, dt=DT_MDL)
self._slowness_fof = FirstOrderFilter(x0=0.0, rc=1, dt=DT_MDL)
self._has_slowness: bool = False
self._dangerous_ttc_fof = FirstOrderFilter(x0=0.0, rc=0.8, dt=DT_MDL)
self._dangerous_ttc_fof = FirstOrderFilter(x0=0.0, rc=1, dt=DT_MDL)
self._has_dangerous_ttc: bool = False
self._v_ego_kph = 0.