From 70ce62bf27adc711f9f5ff62a6f42f5be0ffa657 Mon Sep 17 00:00:00 2001 From: TiaSinghania Date: Mon, 23 Dec 2024 15:35:28 -0800 Subject: [PATCH] updated unpacking new packets --- rb_ws/src/buggy/buggy/serial/host_comm.py | 32 +++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/rb_ws/src/buggy/buggy/serial/host_comm.py b/rb_ws/src/buggy/buggy/serial/host_comm.py index 97b93e8..873dbb5 100644 --- a/rb_ws/src/buggy/buggy/serial/host_comm.py +++ b/rb_ws/src/buggy/buggy/serial/host_comm.py @@ -150,13 +150,12 @@ class SCSensors: # 64 bits velocity: float # double # 32 bits - # TODO: this isnt on firmware rn? steering_angle: float timestamp: int @dataclass class RoundtripTimestamp: - returned_time: int + returned_time: float # double class IncompletePacket(Exception): @@ -193,6 +192,7 @@ def send_steering(self, angle: float): def send_alarm(self, status: int): self.send_packet_raw(MSG_TYPE_ALARM, struct.pack('