#include <imu.hpp>
Definition at line 45 of file imu.hpp.
Imu::Packet::Packet |
( |
uint8_t |
desc = 0 | ) |
|
Constructor.
- Parameters
-
desc | Major descriptor of this command. |
len | Length of the packet payload. |
Definition at line 316 of file imu.cpp.
int Imu::Packet::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.
Definition at line 265 of file imu.cpp.
void Imu::Packet::calcChecksum |
( |
| ) |
|
Calculate the packet checksum. Sets the checksum variable.
Definition at line 291 of file imu.cpp.
bool Imu::Packet::isFilterData |
( |
| ) |
const |
True if this packet corresponds to a filter data message.
Definition at line 261 of file imu.cpp.
bool Imu::Packet::isIMUData |
( |
| ) |
const |
True if this packet corresponds to an imu data message.
Definition at line 257 of file imu.cpp.
std::string Imu::Packet::toString |
( |
| ) |
const |
Make a 'human-readable' version of the packet.
- Returns
- std::string
Definition at line 322 of file imu.cpp.
uint8_t imu_3dm_gx4::Imu::Packet::checkLSB |
uint8_t imu_3dm_gx4::Imu::Packet::checkMSB |
uint16_t imu_3dm_gx4::Imu::Packet::checksum |
uint8_t imu_3dm_gx4::Imu::Packet::descriptor |
Type of packet
Definition at line 58 of file imu.hpp.
constexpr uint8_t imu_3dm_gx4::Imu::Packet::kHeaderLength = 4 |
|
static |
constexpr uint8_t imu_3dm_gx4::Imu::Packet::kSyncLSB = 0x65 |
|
static |
constexpr uint8_t imu_3dm_gx4::Imu::Packet::kSyncMSB = 0x75 |
|
static |
uint8_t imu_3dm_gx4::Imu::Packet::length |
Length of the packet in bytes
Definition at line 59 of file imu.hpp.
uint8_t imu_3dm_gx4::Imu::Packet::payload[255] |
Payload of packet
Definition at line 61 of file imu.hpp.
uint16_t imu_3dm_gx4::Imu::Packet::sync |
Identifer of packet
Definition at line 55 of file imu.hpp.
uint8_t imu_3dm_gx4::Imu::Packet::syncLSB |
uint8_t imu_3dm_gx4::Imu::Packet::syncMSB |
The documentation for this struct was generated from the following files: