wip
This commit is contained in:
@@ -60,6 +60,7 @@ class CarController:
|
||||
self.car_fingerprint = CP.carFingerprint
|
||||
self.last_button_frame = 0
|
||||
self.last_resume_frame = 0
|
||||
self.last_debug_frame = 0
|
||||
|
||||
def update(self, CC, CS, now_nanos, sport_plus):
|
||||
actuators = CC.actuators
|
||||
@@ -234,11 +235,13 @@ class CarController:
|
||||
self.last_button_frame = self.frame
|
||||
else:
|
||||
if (self.frame - self.last_button_frame) * DT_CTRL > 0.25:
|
||||
|
||||
# if (self.frame - self.last_button_frame) * DT_CTRL > 3:
|
||||
# if self.last_resume_frame = self.frame
|
||||
|
||||
if CS.oscar_lane_center_btn_pressed:
|
||||
CS.oscar_lane_center_btn_pressed = False
|
||||
# CC.cruiseControl.resume = True
|
||||
# CC.cruiseControl.cancel = True
|
||||
CC.cruiseControl.cancel = True
|
||||
# Test this...
|
||||
# Also try create_acc_commands
|
||||
# This attempts to set the speed to
|
||||
|
||||
Reference in New Issue
Block a user