this is explored!

pull/28934/head
Shane Smiskol 2 years ago
parent 749880986b
commit b926dfbbb4
  1. 1
      selfdrive/car/hyundai/carcontroller.py
  2. 1
      selfdrive/car/hyundai/hyundaicanfd.py

@ -140,7 +140,6 @@ class CarController:
if (self.frame - self.last_button_frame) * DT_CTRL > 0.25:
# cruise cancel
if CC.cruiseControl.cancel:
print(self.CP.flags)
if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS:
can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info))
self.last_button_frame = self.frame

@ -71,7 +71,6 @@ def create_buttons(packer, CP, CAN, cnt, btn):
"COUNTER": cnt,
"SET_ME_1": 1,
"CRUISE_BUTTONS": btn,
"CRUISE_BUTTONS2999999999": btn,
}
bus = CAN.ECAN if CP.flags & HyundaiFlags.CANFD_HDA2 else CAN.CAM

Loading…
Cancel
Save