GPS_Commands
GetGpsDataRateBase
GetGpsDataRateBase

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

Constants
Packet Bytes
CMD_ID

CMD_GET_GPS_RATE_BASE  - The InertialTypes::Command for this command

FIELD_DATA_BYTE

0x84  - 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
fieldId

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

GpsMessageFormat
GpsMessageFormat

Contains the logic for the "GPS Message Format" command

Constants
Packet Bytes
CMD_ID

CMD_GPS_MESSAGE_FORMAT  - The InertialTypes::Command for this command

FIELD_DATA_BYTE

0x81  - 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 GPS (0x81) descriptor set.

sampleRateBase
uint16

The base sample rate for the gps command set.

Returns

A ByteStream that holds the bytes that make up the command

Exceptions