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