Class that sets/matches expected responses, and stores all the Inertial packets
The default constructor for the InertialPacketCollector
The destructor for the InertialPacketCollector
Typedef for a circular buffer of a InertialDataPacket
The maximum number of data packets that can be stored in the circular buffer
A mutex used for thread safety when accessing/modifying the m_dataPackets buffer
Allows the write to buffer thread to tell the reading thread when data is available
void addDataPacket( |
| ) |
Adds a data packet to the data packets circular buffer
packet const InertialPacket& | The InertialPacket to be added to the buffer |
void getDataPackets( |
| ) |
Gets up to the requested amount of data packets that have been collected.
packets std::vector<InertialDataPacket>& | A vector of InertialDataPacket to hold the result. |
maxPackets uint32 | The maximum number of packets to return. If this is 0 (default), all sweeps will be returned. |
Gets the total number of data packets that are currently in the buffer.
The total number of data packets that are currently in the buffer.