Sensor_Commands
GetSensorDataRateBase
GetSensorDataRateBase

Contains the logic for the "Get Sensor Data Rate Base" command

Constants
Packet Bytes
CMD_ID

CMD_GET_SENSOR_RATE_BASE  - The InertialTypes::Command for this command

FIELD_DATA_BYTE

0x83  - The Data Field Descriptor byte

Functions
buildCommand
static ByteStream buildCommand()

Builds the bytes in the command

Returns

A ByteStream that holds the bytes that make up the command

Response
public
GenericInertialCommand.​Response
ResponsePattern
Response

Handles the response to the command

See Also

<GenericInertialCommand::Response>

Functions
commandId
virtual InertialTypes::Command commandId() const override

Gets the InertialTypes::Command

fieldDataByte
virtual uint8 fieldDataByte() const override

Gets the data field descriptor byte

Response
Response(
std::weak_ptr<ResponseCollectorcollector
)

Creates the Response object

parseResponse
uint16 parseResponse(
const GenericInertialCommandResponse &response
) const

Parses the response, getting the data rate base result

Parameters
response

The GenericInertialCommandResponse holding the response to parse

Returns

The data rate base result

SensorMessageFormat
SensorMessageFormat

Contains the logic for the "Sensor Data Message Format" command

Constants
Packet Bytes
CMD_ID

CMD_SENSOR_MESSAGE_FORMAT  - The InertialTypes::Command for this command

FIELD_DATA_BYTE

0x80  - The Data Field Descriptor byte

Functions
buildCommand_get
static ByteStream buildCommand_get()

Builds the bytes for the "get" command

Returns

A ByteStream that holds the bytes that make up the command

buildCommand_set
static ByteStream buildCommand_set(
const InertialChannels &channels,
uint16 sampleRateBase
)

Builds the bytes for the "set" command.

Parameters
channels
const InertialChannels&

The InertialChannels holding the channels to be set. This should only contain channels that are in the Sensor (0x80) descriptor set.

sampleRateBase
uint16

The base sample rate for the sensor command set.

Returns

A ByteStream that holds the bytes that make up the command

Exceptions