Logo
Explore Help
Register Sign In
mawei/sunnypilot
1
0
Fork 0
You've already forked sunnypilot
mirror of https://github.com/sunnypilot/sunnypilot.git synced 2026-02-24 13:43:57 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
490e977cda2b71ebd02beea9593ea0a8d23f67da
sunnypilot/selfdrive/debug/internal/check_alive_valid.py

20 lines
420 B
Python
Raw Normal View History

add simple script to print controlsd alive and valid old-commit-hash: e66c246f34fc1cfa87adb1157e2b44d8927cdd03
2020-05-14 20:16:24 -07:00
#!/usr/bin/env python3
import time
import cereal.messaging as messaging
if __name__ == "__main__":
cereal cleanup part 2 (#20092) * car stuff * thermal * Revert "car stuff" This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976. * panda state * camera stuff * start deg * most is building * builds * planner + controls run * fix up paramsd * cleanup * process replay passes * fix webcam build * camerad * no more frame * thermald * ui * paramsd * camera replay * fix long tests * fix camerad tests * maxSteeringAngle * bump cereal * more frame * cereal master old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
sm = messaging.SubMaster(['deviceState', 'pandaState', 'modelV2', 'liveCalibration', 'driverMonitoringState', 'longitudinalPlan', 'lateralPlan'])
add simple script to print controlsd alive and valid old-commit-hash: e66c246f34fc1cfa87adb1157e2b44d8927cdd03
2020-05-14 20:16:24 -07:00
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 Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 96ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API