Skip to content

Commit

Permalink
Add case for all MessageTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
wbrannon committed May 10, 2024
1 parent 0640aa2 commit bef54f4
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/point_one/fusion_engine/messages/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit bef54f4

Please sign in to comment.