Files
panda-meb/tests/relay_test.py
Shane Smiskol d3508ff042 Move safety constants to opendbc (#2145)
* move to opendbc

* all passing

* do the rest

* fix

* and another

* order

* and update ref to master
2025-02-11 20:14:44 -08:00

18 lines
308 B
Python
Executable File

#!/usr/bin/env python
import time
from opendbc.safety import Safety
from panda import Panda
p = Panda()
while True:
p.set_safety_mode(Safety.SAFETY_TOYOTA)
p.send_heartbeat()
print("ON")
time.sleep(1)
p.set_safety_mode(Safety.SAFETY_NOOUTPUT)
p.send_heartbeat()
print("OFF")
time.sleep(1)