mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 00:03:54 +08:00
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
old-commit-hash: 91987f38d4
20 lines
421 B
Python
Executable File
20 lines
421 B
Python
Executable File
#!/usr/bin/env python3
|
|
import time
|
|
import cereal.messaging as messaging
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sm = messaging.SubMaster(['deviceState', 'pandaStates', 'modelV2', 'liveCalibration', 'driverMonitoringState', 'longitudinalPlan', 'lateralPlan'])
|
|
|
|
i = 0
|
|
while True:
|
|
sm.update(0)
|
|
|
|
i += 1
|
|
if i % 100 == 0:
|
|
print()
|
|
print("alive", sm.alive)
|
|
print("valid", sm.valid)
|
|
|
|
time.sleep(0.01)
|