mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-04-20 03:41:17 -05:00
nix fmt
This commit is contained in:
@@ -22,14 +22,14 @@ KNOWN_USBS = [
|
||||
BAUD_RATE = 115200
|
||||
|
||||
MCU_IDS = [
|
||||
"broadcast",
|
||||
"core",
|
||||
"arm",
|
||||
"digit",
|
||||
"faerie",
|
||||
"citadel",
|
||||
"libs",
|
||||
]
|
||||
"broadcast",
|
||||
"core",
|
||||
"arm",
|
||||
"digit",
|
||||
"faerie",
|
||||
"citadel",
|
||||
"libs",
|
||||
]
|
||||
|
||||
|
||||
class NoValidDeviceException(Exception):
|
||||
@@ -374,7 +374,7 @@ class CANConnector(Connector):
|
||||
data = struct.pack(">ff", *msg.data)
|
||||
case 4:
|
||||
data_type = 2
|
||||
data = struct.pack(">hhhh", *[ int(x) for x in msg.data])
|
||||
data = struct.pack(">hhhh", *[int(x) for x in msg.data])
|
||||
case _:
|
||||
self.logger.error(
|
||||
f"unexpected VicCAN data length: {data_len}; dropping message"
|
||||
|
||||
Reference in New Issue
Block a user