wip
This commit is contained in:
@@ -169,11 +169,12 @@ class CarState(CarStateBase):
|
||||
self.main_enabled = not self.main_enabled
|
||||
|
||||
# BBot functions for lfa and gap buttons - test speed up / down
|
||||
self.custom_speed_up = False
|
||||
self.custom_speed_down = False
|
||||
self.oscar_lane_center_btn_pressed= False
|
||||
self.oscar_slc_decel = False
|
||||
self.oscar_slc_accel = False
|
||||
|
||||
# if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0:
|
||||
# self.custom_speed_down = True
|
||||
# self.oscar_lane_center_btn_pressed= True
|
||||
|
||||
# lkas_pressed = cp.vl["BCM_PO_11"]["LFA_Pressed"]
|
||||
# if lkas_pressed and not self.lkas_previously_pressed:
|
||||
@@ -301,15 +302,15 @@ class CarState(CarStateBase):
|
||||
SpeedLimitController.write_car_state()
|
||||
|
||||
self.custom_speed_up = False
|
||||
self.custom_speed_down = False
|
||||
self.oscar_lane_center_btn_pressed = False
|
||||
|
||||
if ret.cruiseState.available:
|
||||
|
||||
if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0:
|
||||
self.custom_speed_down = True
|
||||
self.oscar_lane_center_btn_pressed = True
|
||||
|
||||
# if self.cruise_buttons[-1] == Buttons.GAP_DIST and self.prev_cruise_buttons == 0:
|
||||
# self.custom_speed_down = True
|
||||
# self.oscar_lane_center_btn_pressed= True
|
||||
|
||||
# lkas_pressed = cp.vl_all[self.cruise_btns_msg_canfd]["LKAS_BTN"]
|
||||
# if lkas_pressed and not self.lkas_previously_pressed:
|
||||
|
||||
Reference in New Issue
Block a user