InertialPacketBuilder
InertialPacketBuilder
InertialPacketBuilder

A helper class to make it simple to create Inertial Packets

Functions
InertialPacketBuilder
InertialPacketBuilder(
uint8 descriptorSet,
const InertialDataField &field
)

Creates an InertialPacketBuilder object

Parameters
descriptorSet
uint8

The 1-byte Descriptor Set

field

The initial InertialDataField to add

Variables
m_descriptorSet
uint8 m_descriptorSet

The MIP Descriptor Set for the packet

m_fields
std::vector<InertialDataField> m_fields

The vector of InertialDataFields that are in the Inertial Packet

Functions
addField
void addField(
const InertialDataField &field
)

Adds a field to the vector of fields for this packet

Parameters
field

The InertialDataField object to add

buildPacket
ByteStream buildPacket()

Takes the given packet information, including all fields, and builds an Inertial Packet as a ByteStream

Returns

A ByteStream containing the bytes that make up an Inertial Packet