mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-09 19:39:00 +08:00
6d316f2bc7
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
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)
|
|
|