Skip to main content

SetMessageRate Struct

Set the output rate for the requested message types (MessageType::SET_MESSAGE_RATE, version 1). More...

Declaration

struct point_one::fusion_engine::messages::SetMessageRate { ... }

Included Headers

Base struct

structMessagePayload

The base class for all message payloads. More...

Public Member Attributes Index

uint8_tflags = 0

Bitmask of additional flags to modify the command. More...

uint16_tmessage_id = ALL_MESSAGES_ID

The ID of the desired message type (e.g., 10000 for FusionEngine MessageType::POSE messages). More...

InterfaceIDoutput_interface {TransportType::CURRENT}

The output interface to configure. More...

ProtocolTypeprotocol = ProtocolType::INVALID

The message protocol being configured. More...

MessageRaterate = MessageRate::OFF

The desired message rate. More...

Public Static Attributes Index

static constexpr uint8_tFLAG_APPLY_AND_SAVE = 0x01

Flag to immediately save the config after applying this setting. More...

static constexpr uint8_tFLAG_INCLUDE_DISABLED_MESSAGES = 0x02

Flag to apply bulk interval changes to all messages instead of just enabled messages. More...

static constexpr MessageTypeMESSAGE_TYPE = MessageType::SET_MESSAGE_RATE
static constexpr uint8_tMESSAGE_VERSION = 0

Description

Set the output rate for the requested message types (MessageType::SET_MESSAGE_RATE, version 1).

Multiple message rates can be configured with a single command if wild cards are used for the interface, protocol, or message ID. When multiple messages are specified, the following behaviors apply:

Setting all the messages on an interface to MessageRate::DEFAULT will also restore the default *_OUTPUT_DIAGNOSTICS_MESSAGES configuration option value for that interface. See ConfigType.

info

When specifying ProtocolType::ALL, message ID ALL_MESSAGES_ID must also be specified. Further, the rate must be set to either MessageRate::OFF or MessageRate::DEFAULT.

Typical Use Cases

Restore Default Settings For All Messages

To restore the default configuration on UART1 for all message types across all supported protocols, specify the following:

Restore Default Settings For All NMEA

To restore the default configuration on UART1 for all NMEA message types, specify the following:

Change UART1 Output Rate To 1 Hz:

To change the rate of all NMEA message types to 1 Hz on UART1, specify the following:

info

Note that this will not affect any message types that are not rate controlled (e.g., MessageType::EVENT_NOTIFICATION).

Change The Uart1 Output Rates For All Messages To Be Off:

To change the rate of all messages to their max rate on UART1, specify the following:

info

This will disable every message.

Change And Save The UART1 Output Rates For All Messages To Be Off:

To change the rate of all messages to their max rate on UART1, specify the following:

info

Both of the bit flags are set for this message. This will cause the configuration to be saved to non-volatile memory.

Expected Response

The device will respond with a CommandResponseMessage indicating whether or not the request succeeded.

Definition at line 2384 of file configuration.h.

Public Member Attributes

flags

uint8_t point_one::fusion_engine::messages::SetMessageRate::flags = 0

Bitmask of additional flags to modify the command.

Definition at line 2410 of file configuration.h.

2410 uint8_t flags = 0;

message_id

uint16_t point_one::fusion_engine::messages::SetMessageRate::message_id = ALL_MESSAGES_ID

The ID of the desired message type (e.g., 10000 for FusionEngine MessageType::POSE messages).

See NmeaMessageType for NMEA-0183 messages. If ALL_MESSAGES_ID, set the rate for all messages on the selected interface and protocol.

Definition at line 2418 of file configuration.h.

output_interface

InterfaceID point_one::fusion_engine::messages::SetMessageRate::output_interface {TransportType::CURRENT}

The output interface to configure.

If TransportType::ALL, set rates on all supported interfaces.

Definition at line 2401 of file configuration.h.

2401 InterfaceID output_interface{TransportType::CURRENT};

protocol

ProtocolType point_one::fusion_engine::messages::SetMessageRate::protocol = ProtocolType::INVALID

The message protocol being configured.

If ProtocolType::ALL, set rates on all supported protocols.

Definition at line 2407 of file configuration.h.

2407 ProtocolType protocol = ProtocolType::INVALID;

rate

MessageRate point_one::fusion_engine::messages::SetMessageRate::rate = MessageRate::OFF

The desired message rate.

Definition at line 2421 of file configuration.h.

2421 MessageRate rate = MessageRate::OFF;

Public Static Attributes

FLAG_APPLY_AND_SAVE

constexpr uint8_t point_one::fusion_engine::messages::SetMessageRate::FLAG_APPLY_AND_SAVE = 0x01
constexpr static

Flag to immediately save the config after applying this setting.

Definition at line 2389 of file configuration.h.

2389 static constexpr uint8_t FLAG_APPLY_AND_SAVE = 0x01;

FLAG_INCLUDE_DISABLED_MESSAGES

constexpr uint8_t point_one::fusion_engine::messages::SetMessageRate::FLAG_INCLUDE_DISABLED_MESSAGES = 0x02
constexpr static

Flag to apply bulk interval changes to all messages instead of just enabled messages.

Definition at line 2395 of file configuration.h.

2395 static constexpr uint8_t FLAG_INCLUDE_DISABLED_MESSAGES = 0x02;

MESSAGE_TYPE

constexpr MessageType point_one::fusion_engine::messages::SetMessageRate::MESSAGE_TYPE = MessageType::SET_MESSAGE_RATE
constexpr static

Definition at line 2385 of file configuration.h.

2385 static constexpr MessageType MESSAGE_TYPE = MessageType::SET_MESSAGE_RATE;

MESSAGE_VERSION

constexpr uint8_t point_one::fusion_engine::messages::SetMessageRate::MESSAGE_VERSION = 0
constexpr static

Definition at line 2386 of file configuration.h.

2386 static constexpr uint8_t MESSAGE_VERSION = 0;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.