GetDeviceInfo
InertialDeviceInfo

Contains information retrieved from an Inertial GetDeviceInfo command.

Variables
m_fwVersion

The firmware Version.

m_modelName

The model name.

m_modelNumber

The model number.

m_serialNumber

The serial number.

m_lotNumber

The lot number.

m_deviceOptions

The device options.

GetDeviceInfo
GetDeviceInfo

Contains the logic for the Inertial GetDeviceInfo command

Constants
Packet Bytes
CMD_ID

CMD_GET_DEVICE_INFO  - The InertialTypes::Command for this command

FIELD_DATA_BYTE

0x81  - The Data Field Descriptor byte

Functions
buildCommand
static ByteStream buildCommand()

Builds the command packet

Returns

A ByteStream containing the Inertial GetDeviceInfo command packet

Response
public
GenericInertialCommand.​Response
ResponsePattern
Response

Handles the response to the GetDeviceInfo command

Functions
Response
Response(
std::weak_ptr<ResponseCollectorcollector
)

Creates a GetDeviceInfo Response object

Parameters
collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

match_data
virtual bool match_data(
const InertialDataField &field
) override

Attempts to match an InertialDataField to the expected data field response.

Returns

true if the field matches the expected data, false if it does not.

parseResponse
InertialDeviceInfo parseResponse(
const GenericInertialCommandResponse &response
) const

Parses a successfully matched response for the GetDeviceInfo command.

Parameters
response

The GenericInertialCommandResponse that matches the data field for this response.

Returns

The GetDeviceInfoResponse parsed from the response.