mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-28 05:23:46 +08:00
e093d74e0a
date: 2026-10-25T03:40:59 source commit: c3xl-lean@b13531ea3f789dc796a77901d5ff912baa85a1ac built on: comma device
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)
|
|
|