This commit is contained in:
Your Name
2024-02-08 12:56:22 -06:00
parent 90b8e9f072
commit 5307871310
2 changed files with 2 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ class CarController:
def create_button_messages(self, CC: car.CarControl, CS: car.CarState, use_clu11: bool): def create_button_messages(self, CC: car.CarControl, CS: car.CarState, use_clu11: bool):
can_sends = [] can_sends = []
if CS.custom_speed_down: if CS.oscar_lane_center_btn_pressed:
CS.oscar_lane_center_btn_pressed= False CS.oscar_lane_center_btn_pressed= False
# Test me. # Test me.
can_sends.append(hyundaicanfd.create_buttons(self.packer, self.CP, self.CAN, 1, Buttons.RES_ACCEL)) can_sends.append(hyundaicanfd.create_buttons(self.packer, self.CP, self.CAN, 1, Buttons.RES_ACCEL))

View File

@@ -301,7 +301,7 @@ class CarState(CarStateBase):
SpeedLimitController.car_speed_limit = self.calculate_speed_limit_canfd(self.CP, cp, cp_cam) * speed_factor SpeedLimitController.car_speed_limit = self.calculate_speed_limit_canfd(self.CP, cp, cp_cam) * speed_factor
SpeedLimitController.write_car_state() SpeedLimitController.write_car_state()
self.custom_speed_up = False # self.custom_speed_up = False
self.oscar_lane_center_btn_pressed = False self.oscar_lane_center_btn_pressed = False
if ret.cruiseState.available: if ret.cruiseState.available: