From 53078713100e71b97b9de504d92f4147cfffe29d Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Feb 2024 12:56:22 -0600 Subject: [PATCH] wip --- selfdrive/car/hyundai/carcontroller.py | 2 +- selfdrive/car/hyundai/carstate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index 9d55cd5..1287760 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -204,7 +204,7 @@ class CarController: def create_button_messages(self, CC: car.CarControl, CS: car.CarState, use_clu11: bool): can_sends = [] - if CS.custom_speed_down: + if CS.oscar_lane_center_btn_pressed: CS.oscar_lane_center_btn_pressed= False # Test me. can_sends.append(hyundaicanfd.create_buttons(self.packer, self.CP, self.CAN, 1, Buttons.RES_ACCEL)) diff --git a/selfdrive/car/hyundai/carstate.py b/selfdrive/car/hyundai/carstate.py index 927490b..47243a1 100644 --- a/selfdrive/car/hyundai/carstate.py +++ b/selfdrive/car/hyundai/carstate.py @@ -301,7 +301,7 @@ class CarState(CarStateBase): SpeedLimitController.car_speed_limit = self.calculate_speed_limit_canfd(self.CP, cp, cp_cam) * speed_factor SpeedLimitController.write_car_state() - self.custom_speed_up = False + # self.custom_speed_up = False self.oscar_lane_center_btn_pressed = False if ret.cruiseState.available: