same for non-HDA2

pull/24873/head
Shane Smiskol 3 years ago
parent 6a63bd60f0
commit d2f51ee55f
  1. 2
      selfdrive/car/hyundai/carcontroller.py

@ -96,7 +96,7 @@ class CarController:
if not self.CP.openpilotLongitudinalControl:
if CC.cruiseControl.cancel:
can_sends.append(hyundaican.create_clu11(self.packer, self.frame, CS.clu11, Buttons.CANCEL))
elif CS.out.cruiseState.standstill:
elif CC.cruiseControl.resume:
# send resume at a max freq of 10Hz
if (self.frame - self.last_button_frame) * DT_CTRL > 0.1:
# send 25 messages at a time to increases the likelihood of resume being accepted

Loading…
Cancel
Save