Skip to content

Commit

Permalink
Update frogpilot_vcruise.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogAi committed Nov 26, 2024
1 parent 2f14f50 commit 9bd9d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/frogpilot/controls/lib/frogpilot_vcruise.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, FrogPilotPlanner):
def update(self, carState, controlsState, frogpilotCarControl, frogpilotCarState, frogpilotNavigation, modelData, v_cruise, v_ego, frogpilot_toggles):
if v_cruise != self.previous_v_cruise:
self.previous_v_cruise = v_cruise
return
return v_cruise

force_stop = frogpilot_toggles.force_stops and self.frogpilot_planner.cem.stop_light_detected and controlsState.enabled
force_stop &= self.frogpilot_planner.model_length < 100
Expand Down

0 comments on commit 9bd9d44

Please sign in to comment.