#include <Message_data.h>
Public Types | |
enum | payloadOffsets { ROLL_RATE = 0, PITCH_RATE = 2, YAW_RATE = 4, PAYLOAD_LEN = 6 } |
Public Member Functions | |
DataPlatformRotation (void *input, size_t msg_len) | |
DataPlatformRotation (const DataPlatformRotation &other) | |
double | getPitchRate () |
double | getRollRate () |
double | getYawRate () |
virtual std::ostream & | printMessage (std::ostream &stream=std::cout) |
Public Member Functions inherited from sawyer::Message | |
uint16_t | getChecksum () |
uint8_t | getFlags () |
uint8_t | getLength () |
uint8_t | getLengthComp () |
size_t | getPayload (void *buf, size_t max_size) |
size_t | getPayloadLength () |
size_t | getTotalLength () |
uint16_t | getType () |
size_t | getType (void *buf, size_t max_size) |
size_t | getTypeLength () |
uint8_t | getVersion () |
bool | isCommand () |
bool | isData () |
bool | isRequest () |
bool | isValid (char *whyNot=NULL, size_t strLen=0) |
Message () | |
Message (void *input, size_t msg_len) | |
Message (const Message &other) | |
Message (uint16_t type, uint8_t *payload, size_t payload_len, uint32_t timestamp=0, uint8_t flags=0, uint8_t version=0) | |
void | printRaw (std::ostream &stream=std::cout) |
void | send () |
Message * | sendRequest () |
size_t | toBytes (void *buf, size_t buf_size) |
virtual | ~Message () |
Static Public Member Functions | |
static enum MessageTypes | getTypeID () |
static DataPlatformRotation * | getUpdate (double timeout=0) |
static DataPlatformRotation * | popNext () |
static void | subscribe (uint16_t freq) |
static DataPlatformRotation * | waitNext (double timeout=0) |
Static Public Member Functions inherited from sawyer::Message | |
static Message * | factory (void *input, size_t msg_len) |
static Message * | popNext () |
static Message * | waitNext (double timeout=0.0) |
Additional Inherited Members | |
Public Attributes inherited from sawyer::Message | |
uint8_t | data [MAX_MSG_LENGTH] |
size_t | total_len |
Static Public Attributes inherited from sawyer::Message | |
static const size_t | MAX_MSG_LENGTH = 256 |
static const size_t | MIN_MSG_LENGTH = HEADER_LENGTH + CRC_LENGTH |
static const uint8_t | SOH = 0xAA |
static const uint8_t | STX = 0x55 |
Protected Types inherited from sawyer::Message | |
enum | dataOffsets { SOH_OFST = 0, LENGTH_OFST, LENGTH_COMP_OFST, VERSION_OFST, FLAGS_OFST = 4, STX_OFST = 5, TYPE_OFST, PAYLOAD_OFST =8 } |
Protected Member Functions inherited from sawyer::Message | |
size_t | crcOffset () |
uint8_t * | getPayloadPointer (size_t offset=0) |
void | makeValid () |
void | setFlags (uint8_t flags) |
void | setLength (uint8_t len) |
void | setPayload (void *buf, size_t buf_size) |
void | setPayloadLength (uint8_t len) |
void | setType (uint16_t type) |
void | setVersion (uint8_t version) |
Protected Attributes inherited from sawyer::Message | |
bool | is_sent |
Static Protected Attributes inherited from sawyer::Message | |
static const uint16_t | CRC_INIT_VAL = 0xFFFF |
static const size_t | CRC_LENGTH = 2 |
static const size_t | HEADER_LENGTH = 8 |
Definition at line 620 of file Message_data.h.
Enumerator | |
---|---|
ROLL_RATE | |
PITCH_RATE | |
YAW_RATE | |
PAYLOAD_LEN |
Definition at line 623 of file Message_data.h.
sawyer::DataPlatformRotation::DataPlatformRotation | ( | void * | input, |
size_t | msg_len | ||
) |
sawyer::DataPlatformRotation::DataPlatformRotation | ( | const DataPlatformRotation & | other | ) |
double sawyer::DataPlatformRotation::getPitchRate | ( | ) |
Definition at line 629 of file Message_data.cpp.
double sawyer::DataPlatformRotation::getRollRate | ( | ) |
Definition at line 624 of file Message_data.cpp.
|
static |
|
static |
double sawyer::DataPlatformRotation::getYawRate | ( | ) |
Definition at line 634 of file Message_data.cpp.
|
static |
|
virtual |
Reimplemented from sawyer::Message.
Definition at line 639 of file Message_data.cpp.
|
static |
|
static |