mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 01:13:55 +08:00
* move most of /car * move some car tests move some car tests * fix selfdrive/car/tests * fix selfdrive/controls tests * fix the rest of the selfdrive tests * bump opendbc * fix all tests * few more non-test references * remove opcar and move docs to car fix these debugging scripts fix docs * bump opendbc and panda forgot panda
16 lines
542 B
Python
Executable File
16 lines
542 B
Python
Executable File
#!/usr/bin/env python3
|
|
import time
|
|
import cereal.messaging as messaging
|
|
from opendbc.car.disable_ecu import disable_ecu
|
|
from openpilot.selfdrive.car.card import can_comm_callbacks
|
|
|
|
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}")
|