mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-31 21:23:49 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
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)
|
|
|