mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 13:32:05 +08:00
51ea9f5799
* remove cereal from fw_versions * fix it * do ecu_addrs and vin * do last one * move executable-ness * notexe * nice test old-commit-hash: 2ed567b0f576179cd8d03727f46ee4e579c2c989
16 lines
554 B
Python
Executable File
16 lines
554 B
Python
Executable File
#!/usr/bin/env python3
|
|
import time
|
|
import cereal.messaging as messaging
|
|
from openpilot.selfdrive.car.card import can_comm_callbacks
|
|
from openpilot.selfdrive.car.disable_ecu import disable_ecu
|
|
|
|
if __name__ == "__main__":
|
|
sendcan = messaging.pub_sock('sendcan')
|
|
logcan = messaging.sub_sock('can')
|
|
can_callbacks = can_comm_callbacks(logcan, sendcan)
|
|
time.sleep(1)
|
|
|
|
# honda bosch radar disable
|
|
disabled = disable_ecu(*can_callbacks, bus=1, addr=0x18DAB0F1, com_cont_req=b'\x28\x83\x03', timeout=0.5, debug=False)
|
|
print(f"disabled: {disabled}")
|