GenericInertialCommand
GenericInertialCommand

Represents a base class for Inertial commands

Functions
buildCommand
static ByteStream buildCommand(
uint8 descSetByte,
uint8 cmdByte,
Bytes fieldData Bytes()
)

Builds the command for an Inertial command, and returns a ByteStream containing the bytes to send

Parameters
descSetByte
uint8

The descriptor set byte for the command

cmdByte
uint8

The command (field) byte for the command

fieldData

A vector of bytes that make up the field data to be sent in the command (defaults to empty)

Returns

A ByteStream containing the Inertial command packet built from the given bytes

buildCommand
static ByteStream buildCommand(
InertialTypes::Command commandId,
Bytes fieldData Bytes()
)

Builds the command for an Inertial command, and returns a ByteStream containing the bytes to send

Parameters
commandId

The InertialTypes::Command for the command

fieldData

A vector of bytes that make up the field data to be sent in the command (defaults to empty)

Returns

A ByteStream containing the Inertial command packet built from the given bytes