From bef54f49d92470efa79f0a1bf111d96e3b9e9d3a Mon Sep 17 00:00:00 2001 From: William Brannon Date: Fri, 10 May 2024 14:21:25 -0600 Subject: [PATCH] Add case for all MessageTypes --- src/point_one/fusion_engine/messages/defs.h | 33 ++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/point_one/fusion_engine/messages/defs.h b/src/point_one/fusion_engine/messages/defs.h index 211cc741..c23d1549 100644 --- a/src/point_one/fusion_engine/messages/defs.h +++ b/src/point_one/fusion_engine/messages/defs.h @@ -306,9 +306,40 @@ P1_CONSTEXPR_FUNC bool IsCommand(MessageType message_type) { case MessageType::SET_MESSAGE_RATE: case MessageType::GET_MESSAGE_RATE: return true; - default: + case MessageType::POSE: + case MessageType::GNSS_INFO: + case MessageType::GNSS_SATELLITE: + case MessageType::POSE_AUX: + case MessageType::CALIBRATION_STATUS: + case MessageType::RELATIVE_ENU_POSITION: + case MessageType::SYSTEM_STATUS: + case MessageType::IMU_OUTPUT: + case MessageType::RAW_HEADING_OUTPUT: + case MessageType::RAW_IMU_OUTPUT: + case MessageType::HEADING_OUTPUT: + case MessageType::IMU_INPUT: + case MessageType::DEPRECATED_WHEEL_SPEED_MEASUREMENT: + case MessageType::DEPRECATED_VEHICLE_SPEED_MEASUREMENT: + case MessageType::WHEEL_TICK_INPUT: + case MessageType::VEHICLE_TICK_INPUT: + case MessageType::WHEEL_SPEED_INPUT: + case MessageType::VEHICLE_SPEED_INPUT: + case MessageType::RAW_WHEEL_TICK_OUTPUT: + case MessageType::RAW_VEHICLE_TICK_OUTPUT: + case MessageType::RAW_WHEEL_SPEED_OUTPUT: + case MessageType::RAW_VEHICLE_SPEED_OUTPUT: + case MessageType::WHEEL_SPEED_OUTPUT: + case MessageType::VEHICLE_SPEED_OUTPUT: + case MessageType::ROS_POSE: + case MessageType::ROS_GPS_FIX: + case MessageType::ROS_IMU: + case MessageType::CONFIG_RESPONSE: + case MessageType::PLATFORM_STORAGE_DATA: + case MessageType::MESSAGE_RATE_RESPONSE: + case MessageType::SUPPORTED_IO_INTERFACES: return false; } + return false; } /**