wip
This commit is contained in:
@@ -298,13 +298,15 @@ class CarState(CarStateBase):
|
|||||||
self.custom_speed_up = False
|
self.custom_speed_up = False
|
||||||
self.custom_speed_down = False
|
self.custom_speed_down = False
|
||||||
|
|
||||||
if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0:
|
if ret.cruiseState.available:
|
||||||
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:
|
||||||
if lkas_pressed and not self.lkas_previously_pressed:
|
self.custom_speed_down = True
|
||||||
self.custom_speed_up = True
|
|
||||||
self.lkas_previously_pressed = lkas_pressed
|
lkas_pressed = cp.vl[self.cruise_btns_msg_canfd]["LKAS_BTN"]
|
||||||
|
if lkas_pressed and not self.lkas_previously_pressed:
|
||||||
|
self.custom_speed_up = True
|
||||||
|
self.lkas_previously_pressed = lkas_pressed
|
||||||
|
|
||||||
|
|
||||||
# Driving personalities function
|
# Driving personalities function
|
||||||
|
|||||||
Reference in New Issue
Block a user