ContinuousDataStream
ContinuousDataStream

Contains the logic for the "Continuous Data Stream" command.

Constants
Packet Bytes
CMD_ID

CMD_CONTINUOUS_DATA_STREAM  - The InertialTypes::Command for this command

FIELD_DATA_BYTE

0x85  - The Data Field Descriptor byte

Functions
getDeviceSelector
static uint8 getDeviceSelector(
InertialTypes::InertialCategory type
)

Converts an InertialTypes::InertialCategory to the device selector for this command.

Parameters
type

The InertialTypes::InertialCategory to get the device selector for.

Returns

The device selector for the given InertialTypes::InertialCategory.

buildCommand_get
static ByteStream buildCommand_get(
InertialTypes::InertialCategory type
)

Builds the bytes for the "get" command.

Parameters
type

The InertialTypes::InertialCategory to get the current state for.

Returns

A ByteStream that holds the bytes that make up the command.

buildCommand_set
static ByteStream buildCommand_set(
InertialTypes::InertialCategory type,
bool enable
)

Builds the bytes for the "set" command.

Parameters
type

The InertialTypes::InertialCategory to set the state for.

enable
bool

Whether to enable (true) or disable (false) continuous data streaming.

Returns

A ByteStream that holds the bytes that make up the command.