mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-06 16:55:43 +08:00
a5cee30aa6
date: 2024-06-25T13:13:17
commit: 69a099242f
17 lines
272 B
Python
Executable File
17 lines
272 B
Python
Executable File
#!/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)
|
|
|