Update speed_limit_controller.py

This commit is contained in:
huifan 2024-11-04 22:06:10 +08:00
parent 8c6b826ada
commit 25106aee7c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class SpeedLimitController:
def update(self, dashboard_speed_limit, enabled, navigation_speed_limit, v_cruise, v_ego, frogpilot_toggles):
map_speed_limit = self.get_map_speed_limit(v_ego, frogpilot_toggles)
##############################
# max_speed_limit = v_cruise if enabled else 0
max_speed_limit = v_cruise if enabled else 0
##############################
self.speed_limit = self.get_speed_limit(dashboard_speed_limit, map_speed_limit, max_speed_limit, navigation_speed_limit, frogpilot_toggles)