mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 10:02:06 +08:00
add simple script to print controlsd alive and valid
old-commit-hash: e66c246f34fc1cfa87adb1157e2b44d8927cdd03
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
import time
|
||||
import cereal.messaging as messaging
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sm = messaging.SubMaster(['thermal', 'health', 'model', 'liveCalibration', 'dMonitoringState', 'plan', 'pathPlan'])
|
||||
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user