Files
sunnypilot/selfdrive/debug/internal/check_alive_valid.py
Adeeb Shihadeh 966945880b Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
old-commit-hash: 000bd226aa
2021-02-03 19:57:30 -08:00

20 lines
398 B
Python
Executable File

#!/usr/bin/env python3
import time
import cereal.messaging as messaging
if __name__ == "__main__":
sm = messaging.SubMaster(['thermal', 'health', 'model', 'liveCalibration', 'driverMonitoringState', 'plan', '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)