mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-27 08:53:51 +08:00
DEC: Use modelV2.navEnabled for navigation instruction checks
This commit is contained in:
@@ -131,7 +131,7 @@ class DynamicExperimentalController:
|
||||
self._has_mpc_fcw = self._mpc_fcw_gmac.get_moving_average() >= MPC_FCW_PROB
|
||||
|
||||
# nav enable detection
|
||||
self._has_nav_instruction = maneuver_distance / max(car_state.vEgo, 1) < 13
|
||||
self._has_nav_instruction = md.navEnabled and maneuver_distance / max(car_state.vEgo, 1) < 13
|
||||
|
||||
# lead detection
|
||||
self._lead_gmac.add_data(lead_one.status)
|
||||
|
||||
Reference in New Issue
Block a user