mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-04-20 11:51:16 -05:00
nix fmt
This commit is contained in:
@@ -29,7 +29,7 @@ MCU_IDS = [
|
|||||||
"faerie",
|
"faerie",
|
||||||
"citadel",
|
"citadel",
|
||||||
"libs",
|
"libs",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class NoValidDeviceException(Exception):
|
class NoValidDeviceException(Exception):
|
||||||
@@ -374,7 +374,7 @@ class CANConnector(Connector):
|
|||||||
data = struct.pack(">ff", *msg.data)
|
data = struct.pack(">ff", *msg.data)
|
||||||
case 4:
|
case 4:
|
||||||
data_type = 2
|
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 _:
|
case _:
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
f"unexpected VicCAN data length: {data_len}; dropping message"
|
f"unexpected VicCAN data length: {data_len}; dropping message"
|
||||||
|
|||||||
Reference in New Issue
Block a user