* reorg

* one less config file

* lil more

* lil more
This commit is contained in:
Adeeb Shihadeh
2025-05-19 19:02:59 -07:00
committed by GitHub
parent 20c80e3929
commit 2f47af4b2e
40 changed files with 16 additions and 360 deletions

17
scripts/echo.py Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
from opendbc.car.structs import CarParams
from panda import Panda
# This script is intended to be used in conjunction with the echo_loopback_test.py test script from panda jungle.
# It sends a reversed response back for every message received containing b"test".
if __name__ == "__main__":
p = Panda()
p.set_safety_mode(CarParams.SafetyModel.allOutput)
p.set_power_save(False)
while True:
incoming = p.can_recv()
for message in incoming:
address, data, bus = message
if b'test' in data:
p.can_send(address, data[::-1], bus)