Contains helper functions for Inertial Commands
The possible command function selectors for Inertial commands
static bool parseData_singleBool( |
| ) |
Parses the data for a single boolean flag response.
response | The GenericInertialCommandResponse that contains the data to be parsed. |
The boolean parsed from the response.
static void parseData_GetDeviceInfo( |
| ) |
Parses the data from a GetDeviceInfo response.
response | The GenericInertialCommandResponse that contains the data to be parsed. |
result | Holds the InertialDeviceInfo result. |
static void parseData_GetDeviceDescriptorSets( |
| ) |
Parses the data from a GetDeviceDescriptorSets response.
response | The GenericInertialCommandResponse that contains the data to be parsed. |
result std::vector<uint16>& | Holds the descriptor sets result. |
static uint16 parseData_DataRateBase( |
| ) |
Parses the data from a DataRateBase response
response | The GenericInertialCommandResponse that contains the data to be parsed |
The data rate base parsed from the response
static uint8 parseData_CommunicationMode( |
| ) |
Parses the data from a CommunicationMode response
response | The GenericInertialCommandResponse that contains the data to be parsed |
The data rate base parsed from the response
static InertialChannels parseData_MessageFormat( |
| ) |
Parses the data from a MessageFormat response
response | The GenericInertialCommandResponse that contains the data to be parsed |
descSet uint8 | The descriptor set byte for this specific MessageFormat command |
sampleRateBase uint16 | The sample rate base for the device, used for determining sample rates. |
An InertialChannels object containing the channels that are active in the current MessageFormat
static bool parseData_ContinuousDataStream( |
| ) |
Parses the data from a ContinuousDataStream response
response | The GenericInertialCommandResponse that contains the data to be parsed |
true if the data stream is enabled, false if it is disabled.
static EulerAngles parseData_EulerAngles( |
| ) |
Parses the data from a command response containing just 3 Euler Angles (roll, pitch, yaw).
response | The GenericInertialCommandResponse that contains the data to be parsed |
The EulerAngles containing the result that is parsed.
static PositionOffset parseData_PositionOffset( |
| ) |
Parses the data from a command response containing just 3 Position Offset values (x, y, z).
response | The GenericInertialCommandResponse that contains the data to be parsed |
The EulerAngles containing the result that is parsed.