mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 06:33:57 +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
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)
|