mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 06:22:06 +08:00
c5d5c5d1f3
date: 2025-10-24T00:30:59 master commit: 405631baf9685e171a0dd19547cb763f1b163d18
18 lines
332 B
Python
Executable File
18 lines
332 B
Python
Executable File
#!/usr/bin/env python
|
|
import time
|
|
from opendbc.car.structs import CarParams
|
|
from panda import Panda
|
|
|
|
p = Panda()
|
|
|
|
while True:
|
|
p.set_safety_mode(CarParams.SafetyModel.toyota)
|
|
p.send_heartbeat()
|
|
print("ON")
|
|
time.sleep(1)
|
|
p.set_safety_mode(CarParams.SafetyModel.noOutput)
|
|
p.send_heartbeat()
|
|
print("OFF")
|
|
time.sleep(1)
|
|
|