Skip to content

Commit

Permalink
no walrus
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jun 30, 2022
1 parent b7b425e commit e088fde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,9 @@ def publish_logs(self, CS, start_time, CC, lac_log):
CC.cruiseControl.cancel = CS.cruiseState.enabled and (not self.enabled or not self.CP.pcmCruise)
if self.joystick_mode and self.sm.rcv_frame['testJoystick'] > 0 and self.sm['testJoystick'].buttons[0]:
CC.cruiseControl.cancel = True
if len(speeds := self.sm['longitudinalPlan'].speeds):

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

hudControl = CC.hudControl
Expand Down

0 comments on commit e088fde

Please sign in to comment.