pass through resume button too

This commit is contained in:
jakethesake420
2024-09-25 08:48:20 -05:00
committed by MoreTore
parent 831c177a2e
commit e1bbc5e26c
+1 -1
View File
@@ -92,7 +92,7 @@ class CarController(CarControllerBase):
if CS.out.standstill: # if we're stopped
if not self.hold_delay.active(): # and we have been stopped for more than hold_delay duration. This prevents a hard brake if we aren't fully stopped.
if (CC.cruiseControl.resume or CC.cruiseControl.override or CS.out.gasPressed or
(CC.actuators.longControlState == LongCtrlState.starting)): # and we want to resume
(CC.actuators.longControlState == LongCtrlState.starting) or CS.acc["RESUME"]): # and we want to resume
self.resume_timer.reset() # reset the resume timer so its active
else: # otherwise we're holding
hold = self.hold_timer.active() # hold for 6s. This allows the electric brake to hold the car.