#include <stdexcept>
#include <memory>
#include <string>
#include <deque>
#include <queue>
#include <vector>
#include <bitset>
#include <map>
#include <boost/bind.hpp>
Go to the source code of this file.
#define HOST_LITTLE_ENDIAN |
int __attribute__::ackErrorCodeFor |
( |
const Packet & |
command | ) |
const |
Extract the ACK code from this packet.
- Parameters
-
commmand | Command packet to which this ACK should correspond. |
- Returns
- -1 if the packets do not correspond or this is not an ACK. The error code is returned otherwise.
void __attribute__::calcChecksum |
( |
| ) |
|
Calculate the packet checksum. Sets the checksum variable.
bool __attribute__::isFilterData |
( |
| ) |
const |
True if this packet corresponds to a filter data message.
bool __attribute__::isIMUData |
( |
| ) |
const |
True if this packet corresponds to an imu data message.
__attribute__::Packet |
( |
uint8_t |
desc = 0 | ) |
|
Constructor.
- Parameters
-
desc | Major descriptor of this command. |
len | Length of the packet payload. |
std::map<std::string, unsigned int> __attribute__::toMap |
( |
| ) |
const |
Convert to map of human readable strings and integers.
std::string __attribute__::toString |
( |
| ) |
const |
Make a 'human-readable' version of the packet.
- Returns
- std::string
Packet checksum
Definition at line 24 of file imu.hpp.
uint32_t comNumReadOverruns |
uint32_t comNumWriteOverruns |
Type of packet
Definition at line 14 of file imu.hpp.
uint32_t filterPacketsDropped |
uint8_t filterStreamEnabled |
uint32_t imuPacketsDropped |
constexpr uint8_t kHeaderLength = 4 |
|
static |
constexpr uint8_t kSyncLSB = 0x65 |
|
static |
constexpr uint8_t kSyncMSB = 0x75 |
|
static |
Length of the packet in bytes
Definition at line 15 of file imu.hpp.
uint32_t numIMUParseErrors |
Payload of packet
Definition at line 17 of file imu.hpp.
Identifer of packet
Definition at line 11 of file imu.hpp.
uint32_t totalIMUMessages |
uint32_t usbNumReadOverruns |
uint32_t usbNumWriteOverruns |