This commit is contained in:
Your Name
2024-04-27 03:19:19 -05:00
parent df418b503f
commit 03af7b6107
306 changed files with 108529 additions and 119 deletions

16
panda/tests/relay_test.py Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python
import time
from panda import Panda
p = Panda()
while True:
p.set_safety_mode(Panda.SAFETY_TOYOTA)
p.send_heartbeat()
print("ON")
time.sleep(1)
p.set_safety_mode(Panda.SAFETY_NOOUTPUT)
p.send_heartbeat()
print("OFF")
time.sleep(1)