Go to the documentation of this file.
14 #pragma warning(disable: 4200)
22 namespace fusion_engine {
100 return "Device Lever Arm";
103 return "Device Coarse Orientation";
106 return "GNSS Lever Arm";
109 return "Output Lever Arm";
112 return "UART0 Baud Rate";
115 return "UART1 Baud Rate";
118 return "Unrecognized Configuration";
127 stream <<
to_string(type) <<
" (" << (int)type <<
")";
158 return "Unrecognized Source";
168 stream <<
to_string(source) <<
" (" << (int)source <<
")";
199 return "Revert To Saved";
202 return "Revert To Default";
214 stream <<
to_string(action) <<
" (" << (int)action <<
")";
245 uint8_t reserved[2] = {0};
277 uint8_t reserved[1] = {0};
295 uint8_t reserved[3] = {0};
333 uint8_t reserved[4] = {0};
391 uint8_t reserved[2] = {0};
ConfigType
An identifier for the contents of a parameter configuration message.
@ BACKWARD
Aligned with vehicle -x axis.
static constexpr MessageType MESSAGE_TYPE
A 3-dimensional vector (used for lever arms, etc.).
MessageType
Identifiers for the defined output message types.
@ SAVE
Save all active parameters to persistent storage.
The orientation of a device with respect to the vehicle body axes.
@ DEVICE_LEVER_ARM
The location of the device IMU with respect to the vehicle body frame (in meters).
@ REVERT_TO_SAVED
Revert the active configuration to previously saved values.
@ DOWN
Aligned with vehicle -z axis.
static constexpr MessageType MESSAGE_TYPE
@ UART1_BAUD
Configure the UART1 serial baud rate (in bits/second).
@ CONFIG_DATA
ConfigDataMessage
uint8_t config_change_data[0]
A pointer to the beginning of the configuration parameter value.
SaveAction
The type configuration save operation to be performed.
uint8_t config_change_data[0]
A pointer to the beginning of the configuration parameter value.
@ REVERT_TO_DEFAULT
Reset the active and saved configuration to default values.
@ SAVE_CONFIG
SaveConfigMessage
static constexpr MessageType MESSAGE_TYPE
bool active_differs_from_saved
Set to true if the active configuration differs from the saved configuration for this parameter.
@ ACTIVE
Active configuration currently in use by the device.
uint32_t config_length_bytes
The size of the parameter value, config_change_data (in bytes).
ConfigurationSource config_source
The source of the parameter value (active, saved, etc.).
SaveAction action
The action to performed.
The base class for all message payloads.
static constexpr MessageType MESSAGE_TYPE
Query the value of a user configuration parameter (MessageType::GET_CONFIG, version 1....
ConfigType config_type
The desired parameter.
@ UP
Aligned with vehicle +z axis.
Response to a GetConfigMessage request (MessageType::CONFIG_DATA, version 1.0).
@ DEVICE_COARSE_ORIENTATION
The orientation of the device IMU with respect to the vehicle body axes.
uint32_t config_length_bytes
The size of the parameter value, config_change_data (in bytes).
@ LEFT
Aligned with vehicle +y axis.
ConfigType config_type
The type of parameter to be configured.
@ UART0_BAUD
Configure the UART0 serial baud rate (in bits/second).
Direction z_direction
The direction of the device +z axis relative to the vehicle body axes.
ConfigurationSource request_source
The config source to request data from (active, saved, etc.).
Save or reload configuration settings (MessageType::SAVE_CONFIG, version 1.0).
Set a user configuration parameter (MessageType::SET_CONFIG, version 1.0).
static constexpr uint8_t MESSAGE_VERSION
ConfigType config_type
The type of configuration parameter contained in this message.
@ GET_CONFIG
GetConfigMessage
@ OUTPUT_LEVER_ARM
The location of the desired output location with respect to the vehicle body frame (in meters).
static constexpr uint8_t MESSAGE_VERSION
static constexpr uint8_t MESSAGE_VERSION
@ SAVED
Settings currently saved to persistent storage.
@ SET_CONFIG
SetConfigMessage
std::ostream & operator<<(std::ostream &stream, ConfigType type)
ConfigType stream operator.
Point One FusionEngine output message common definitions.
ConfigurationSource
The type of a device's configuration settings.
const char * to_string(ConfigType type)
Get a human-friendly string name for the specified ConfigType.
@ GNSS_LEVER_ARM
The location of the GNSS antenna with respect to the vehicle body frame (in meters).
@ RIGHT
Aligned with vehicle -y axis.
static constexpr uint8_t MESSAGE_VERSION
Direction x_direction
The direction of the device +x axis relative to the vehicle body axes.
@ FORWARD
Aligned with vehicle +x axis.