mirror of https://github.com/commaai/openpilot.git
controlsd: only add startup event until initialized (#23671)
* controlsd: only add startup event until initialized
* update refs
* update again
old-commit-hash: 602f92fc0e
This commit is contained in:
parent
22c3778cab
commit
97ea3c8ff2
|
@ -181,10 +181,8 @@ class Controls:
|
|||
"""Compute carEvents from carState"""
|
||||
|
||||
self.events.clear()
|
||||
self.events.add_from_msg(CS.events)
|
||||
self.events.add_from_msg(self.sm['driverMonitoringState'].events)
|
||||
|
||||
# Handle startup event
|
||||
# Add startup event
|
||||
if self.startup_event is not None:
|
||||
self.events.add(self.startup_event)
|
||||
self.startup_event = None
|
||||
|
@ -194,6 +192,9 @@ class Controls:
|
|||
self.events.add(EventName.controlsInitializing)
|
||||
return
|
||||
|
||||
self.events.add_from_msg(CS.events)
|
||||
self.events.add_from_msg(self.sm['driverMonitoringState'].events)
|
||||
|
||||
# Create events for battery, temperature, disk space, and memory
|
||||
if EON and (self.sm['peripheralState'].pandaType != PandaType.uno) and \
|
||||
self.sm['deviceState'].batteryPercent < 1 and self.sm['deviceState'].chargingError:
|
||||
|
|
|
@ -172,7 +172,6 @@ def fingerprint(msgs, fsm, can_sock, fingerprint):
|
|||
can_sock.data = []
|
||||
|
||||
fsm.update_ready.set()
|
||||
print("finished fingerprinting")
|
||||
|
||||
|
||||
def get_car_params(msgs, fsm, can_sock, fingerprint):
|
||||
|
|
|
@ -1 +1 @@
|
|||
d2ea206bf832dbc0625756d56820895e52d3029e
|
||||
c751c4948ec4e30706ff8a40129f0020214a7c63
|
Loading…
Reference in New Issue