From e66c246f34fc1cfa87adb1157e2b44d8927cdd03 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 14 May 2020 20:16:24 -0700 Subject: [PATCH] add simple script to print controlsd alive and valid --- selfdrive/debug/internal/check_alive_valid.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 selfdrive/debug/internal/check_alive_valid.py diff --git a/selfdrive/debug/internal/check_alive_valid.py b/selfdrive/debug/internal/check_alive_valid.py new file mode 100755 index 0000000000..cee03d6a37 --- /dev/null +++ b/selfdrive/debug/internal/check_alive_valid.py @@ -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)