mirror of https://github.com/commaai/panda.git
relay test
This commit is contained in:
parent
ecef0a19d0
commit
f7089b71b9
|
@ -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)
|
||||
|
Loading…
Reference in New Issue