From 3a60701fd71e5c767fc342fd3572b6a705b5643d Mon Sep 17 00:00:00 2001 From: Michael Brosnahan Date: Thu, 14 Mar 2024 22:22:38 -0400 Subject: [PATCH] Update rbr_maestro3_node.py Updated hard coded header count from 16 to 15 for change in RBR unit used in Alma March 2023 deployment. --- src/rbr_maestro3_ctd/src/rbr_maestro3_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rbr_maestro3_ctd/src/rbr_maestro3_node.py b/src/rbr_maestro3_ctd/src/rbr_maestro3_node.py index 64886e0..636fa7f 100755 --- a/src/rbr_maestro3_ctd/src/rbr_maestro3_node.py +++ b/src/rbr_maestro3_ctd/src/rbr_maestro3_node.py @@ -66,8 +66,8 @@ async def main(): # Crummy parser fields = [ x.strip() for x in msg.data.split(b',') ] - if len(fields) != 16: - rospy.logwarn(f'Discarding malformed RBR message - expected 16 fields but received {len(fields)}') + if len(fields) != 15: + rospy.logwarn(f'Discarding malformed RBR message - expected 15 fields but received {len(fields)}') continue try: