From 250f866f9c4afe170ce12e41011dbfc8e0d8f903 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 12 May 2024 22:27:11 -0500 Subject: [PATCH] wip --- selfdrive/car/hyundai/carcontroller.py | 6 +++--- selfdrive/car/hyundai/hyundaicanfd.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 6656fbf..cae47f1 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -199,9 +199,9 @@ class CarController(CarControllerBase): # cruise cancel if CC.cruiseControl.cancel: if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS: - pass - # can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info)) - # self.last_button_frame = self.frame + # pass + can_sends.append(hyundaicanfd.create_acc_cancel(self.packer, self.CP, self.CAN, CS.cruise_info)) + self.last_button_frame = self.frame # CS.lkas_trigger_result = 1 else: for _ in range(20): diff --git a/selfdrive/car/hyundai/hyundaicanfd.py b/selfdrive/car/hyundai/hyundaicanfd.py index 107e9a8..b647851 100644 --- a/selfdrive/car/hyundai/hyundaicanfd.py +++ b/selfdrive/car/hyundai/hyundaicanfd.py @@ -123,7 +123,7 @@ def create_acc_cancel(packer, CP, CAN, cruise_info_copy): "CRUISE_STANDSTILL", ]} values.update({ - "ACCMode": 4, + "ACCMode": 1, # testing 1 instead of 4 "aReqRaw": 0.0, "aReqValue": 0.0, })