Skip to content

Commit

Permalink
Fix during pool test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwp18 committed Jun 5, 2024
1 parent b4ef5fa commit cce62d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/float/float_transceiver/float_transceiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const uint32_t PROFILE_SEGMENT = 60000;

// Schedule (all delays in ms)
const uint32_t RELEASE_MAX = 300000;
const uint32_t SUCK_MAX = PRESSURE_READ_INTERVAL;
const uint32_t DESCEND_TIME = PRESSURE_READ_INTERVAL;
const uint32_t PUMP_MAX = PRESSURE_READ_INTERVAL;
const uint32_t ASCEND_TIME = PRESSURE_READ_INTERVAL;
const uint32_t SUCK_MAX = PROFILE_SEGMENT;
const uint32_t DESCEND_TIME = PROFILE_SEGMENT;
const uint32_t PUMP_MAX = PROFILE_SEGMENT;
const uint32_t ASCEND_TIME = PROFILE_SEGMENT;
const uint32_t TX_MAX = 60000;
const uint32_t ONE_HOUR = 360000;

Expand Down
2 changes: 1 addition & 1 deletion src/surface/transceiver/transceiver/serial_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(self, queue_size: int = 5) -> None:
@staticmethod
def is_ros_single_message(packet: str) -> bool:
ros_single = ROS_PACKET + "SINGLE"
return packet[:len(ros_single)] != ros_single
return packet[:len(ros_single)] == ros_single

def handle_ros_single(self, packet: str) -> None:
if self.surface_pressures.full():
Expand Down

0 comments on commit cce62d3

Please sign in to comment.