dragonpilot beta3

date: 2024-08-20T11:22:58
commit: dc76c1d6216e3766209a450c29dc9dafb696ef19
This commit is contained in:
dragonpilot
2024-08-20 11:22:22 +00:00
committed by Comma Device
parent 0f94adf3e2
commit c58f481a80
613 changed files with 36485 additions and 157159 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ def calculate_checksum(data):
def pack_can_buffer(arr):
snds = [b'']
for address, _, dat, bus in arr:
for address, dat, bus in arr:
assert len(dat) in LEN_TO_DLC
#logging.debug(" W 0x%x: 0x%s", address, dat.hex())
@@ -85,7 +85,7 @@ def unpack_can_buffer(dat):
data = dat[CANPACKET_HEAD_SIZE:(CANPACKET_HEAD_SIZE+data_len)]
dat = dat[(CANPACKET_HEAD_SIZE+data_len):]
ret.append((address, 0, data, bus))
ret.append((address, data, bus))
return (ret, dat)
@@ -813,7 +813,7 @@ class Panda:
logging.error("CAN: BAD SEND MANY, RETRYING")
def can_send(self, addr, dat, bus, timeout=CAN_SEND_TIMEOUT_MS):
self.can_send_many([[addr, None, dat, bus]], timeout=timeout)
self.can_send_many([[addr, dat, bus]], timeout=timeout)
@ensure_can_packet_version
def can_recv(self):