This commit is contained in:
Your Name
2024-02-05 01:43:52 -06:00
parent a4f130ba44
commit e55aa65d18

View File

@@ -303,7 +303,10 @@ class CarState(CarStateBase):
if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0: if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0:
self.custom_speed_down = True self.custom_speed_down = True
lkas_pressed = cp.vl[self.cruise_btns_msg_canfd]["LKAS_BTN"] # if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0:
# self.custom_speed_down = True
lkas_pressed = cp.vl_all[self.cruise_btns_msg_canfd]["LKAS_BTN"]
if lkas_pressed and not self.lkas_previously_pressed: if lkas_pressed and not self.lkas_previously_pressed:
self.custom_speed_up = True self.custom_speed_up = True
self.lkas_previously_pressed = lkas_pressed self.lkas_previously_pressed = lkas_pressed