relay test

This commit is contained in:
Tici 2020-08-17 10:15:17 +00:00
parent ecef0a19d0
commit f7089b71b9
1 changed files with 16 additions and 0 deletions

16
tests/relay_test.py Executable 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)