CAN comms test (#1181)

* CAN comms test

* remove those

* cleanup

* little more
This commit is contained in:
Adeeb Shihadeh
2022-11-30 22:12:28 -08:00
committed by GitHub
parent b238d41979
commit 88b30e1a84
15 changed files with 297 additions and 128 deletions

View File

@@ -29,6 +29,7 @@ BASEDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../")
DEBUG = os.getenv("PANDADEBUG") is not None
USBPACKET_MAX_SIZE = 0x40
CANPACKET_HEAD_SIZE = 0x5
DLC_TO_LEN = [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 20, 24, 32, 48, 64]
LEN_TO_DLC = {length: dlc for (dlc, length) in enumerate(DLC_TO_LEN)}