From c22403f4fa22dadc7fc64f62e0a5034f00efe90a Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 3 May 2024 23:28:51 -0500 Subject: [PATCH] wip --- selfdrive/car/hyundai/carcontroller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index e082589..3ead3ce 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -183,7 +183,8 @@ class CarController(CarControllerBase): def create_button_messages(self, CC: car.CarControl, CS: car.CarState, use_clu11: bool): can_sends = [] - sys.stderr.write(str({'use_clu11': use_clu11}) + '\n') + # False + # sys.stderr.write(str({'use_clu11': use_clu11}) + '\n') if use_clu11: if CC.cruiseControl.cancel: @@ -208,9 +209,10 @@ class CarController(CarControllerBase): self.last_button_frame = self.frame # cruise standstill resume - elif CC.cruiseControl.resume: + elif CC.cruiseControl.resume or CS.lkas_enabled: if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS: # TODO: resume for alt button cars + sys.stderr.write(str({'canfdalt': True}) + '\n') pass else: for _ in range(20):