Skip to content

Commit

Permalink
MADS: enforce longitudinal allowed check on auto-resume (commaai#66)
Browse files Browse the repository at this point in the history
* bump panda

* MADS: enforce long allowed on auto-resume
  • Loading branch information
sunnyhaibin authored Mar 30, 2023
1 parent c5f0b9a commit b1c12de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panda
Submodule panda updated from e8ac28 to 506cb0
2 changes: 1 addition & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def publish_logs(self, CS, start_time, CC, lac_log):

speeds = self.sm['longitudinalPlan'].speeds
if len(speeds):
CC.cruiseControl.resume = self.enabled and CS.cruiseState.standstill and speeds[-1] > 0.1
CC.cruiseControl.resume = self.enabled_long and CS.cruiseState.standstill and speeds[-1] > 0.1
CC.vCruise = float(self.v_cruise_helper.v_cruise_kph)

hudControl = CC.hudControl
Expand Down

0 comments on commit b1c12de

Please sign in to comment.