CarInterface: move stateless, common car events to car interface (#32394)
* move stateless, common car events to car interface * try to reduce process replay diff a bit * Revert "try to reduce process replay diff a bit" This reverts commit b12798deabea67c5a636d6e70e80a3c21c7225ff. * update refs old-commit-hash: 3dfb6d7931711c51ecfe0d8c32f0ff928b17a5c9
This commit is contained in:
@@ -211,12 +211,6 @@ class Controls:
|
||||
(CS.regenBraking and (not self.CS_prev.regenBraking or not CS.standstill)):
|
||||
self.events.add(EventName.pedalPressed)
|
||||
|
||||
if CS.brakePressed and CS.standstill:
|
||||
self.events.add(EventName.preEnableStandstill)
|
||||
|
||||
if CS.gasPressed:
|
||||
self.events.add(EventName.gasPressedOverride)
|
||||
|
||||
if not self.CP.notCar:
|
||||
self.events.add_from_msg(self.sm['driverMonitoringState'].events)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user