Classes |
struct | crtp |
struct | crtpCommanderHighLevelDefineTrajectoryRequest |
struct | crtpCommanderHighLevelGoToRequest |
struct | crtpCommanderHighLevelLandRequest |
struct | crtpCommanderHighLevelSetGroupMaskRequest |
struct | crtpCommanderHighLevelStartTrajectoryRequest |
struct | crtpCommanderHighLevelStopRequest |
struct | crtpCommanderHighLevelTakeoffRequest |
struct | crtpConsoleResponse |
struct | crtpEmergencyStopRequest |
struct | crtpEmergencyStopWatchdogRequest |
struct | crtpEmpty |
struct | crtpExternalPosePacked |
struct | crtpExternalPoseUpdate |
struct | crtpExternalPositionPacked |
struct | crtpExternalPositionUpdate |
struct | crtpFullStateSetpointRequest |
struct | crtpGetDeviceTypeNameRequest |
struct | crtpGetDeviceTypeNameResponse |
struct | crtpGetFirmwareVersionRequest |
struct | crtpGetFirmwareVersionResponse |
struct | crtpGetProtocolVersionRequest |
struct | crtpGetProtocolVersionResponse |
struct | crtpHoverSetpointRequest |
struct | crtpLogControlResponse |
struct | crtpLogCreateBlockRequest |
struct | crtpLogCreateBlockV2Request |
struct | crtpLogDataResponse |
struct | crtpLogGetInfoRequest |
struct | crtpLogGetInfoResponse |
struct | crtpLogGetInfoV2Request |
struct | crtpLogGetInfoV2Response |
struct | crtpLogGetItemRequest |
struct | crtpLogGetItemResponse |
struct | crtpLogGetItemV2Request |
struct | crtpLogGetItemV2Response |
struct | crtpLogResetRequest |
struct | crtpLogStartRequest |
struct | crtpLogStopRequest |
struct | crtpMemoryGetInfoRequest |
struct | crtpMemoryGetInfoResponse |
struct | crtpMemoryGetNumberRequest |
struct | crtpMemoryGetNumberResponse |
struct | crtpMemoryReadRequest |
struct | crtpMemoryReadResponse |
struct | crtpMemoryWriteRequest |
struct | crtpMemoryWriteResponse |
struct | crtpPacket_t |
struct | crtpParamReadRequest |
struct | crtpParamReadV2Request |
struct | crtpParamTocGetInfoRequest |
struct | crtpParamTocGetInfoResponse |
struct | crtpParamTocGetInfoV2Request |
struct | crtpParamTocGetInfoV2Response |
struct | crtpParamTocGetItemRequest |
struct | crtpParamTocGetItemResponse |
struct | crtpParamTocGetItemV2Request |
struct | crtpParamTocGetItemV2Response |
struct | crtpParamWriteRequest< T > |
struct | crtpParamWriteV2Request< T > |
struct | crtpPlatformRSSIAck |
struct | crtpPositionSetpointRequest |
struct | crtpSetpointRequest |
struct | crtpStopRequest |
struct | logBlockItem |
struct | logBlockItemV2 |
struct | trajectoryDescription |
Defines |
#define | CHECKSIZE(s) static_assert(sizeof(s) <= CRTP_MAXSIZE, #s " packet is too large"); |
#define | CHECKSIZE_RESPONSE(s) static_assert(sizeof(s) <= CRTP_MAXSIZE_RESPONSE, #s " packet is too large"); |
Typedefs |
typedef crtpParamTocGetItemResponse | Response |
Enumerations |
enum | crtpLogControlResult {
crtpLogControlResultOk = 0,
crtpLogControlResultOutOfMemory = 12,
crtpLogControlResultCmdNotFound = 8,
crtpLogControlResultWrongBlockId = 2,
crtpLogControlResultBlockTooLarge = 7,
crtpLogControlResultBlockExists = 17
} |
enum | crtpMemoryType { EEPROM = 0x00,
OW = 0x01,
LED12 = 0x10,
LOCO = 0x11
} |
enum | TrajectoryLocation_e { TRAJECTORY_LOCATION_INVALID = 0,
TRAJECTORY_LOCATION_MEM = 1
} |
enum | TrajectoryType_e { TRAJECTORY_TYPE_POLY4D = 0
} |
Functions |
struct crtp | __attribute__ ((packed)) |
| CHECKSIZE (crtpParamWriteRequest< double >) struct crtpParamValueResponse |
| CHECKSIZE (crtpParamWriteV2Request< float >) struct crtpParamValueV2Response |
constexpr | crtp (uint8_t port, uint8_t channel) |
| crtp (uint8_t byte) |
| crtpCommanderHighLevelDefineTrajectoryRequest (uint8_t trajectoryId) |
| crtpCommanderHighLevelGoToRequest (uint8_t groupMask, bool relative, float x, float y, float z, float yaw, float duration) |
| crtpCommanderHighLevelLandRequest (uint8_t groupMask, float height, float duration) |
| crtpCommanderHighLevelSetGroupMaskRequest (uint8_t groupMask) |
| crtpCommanderHighLevelStartTrajectoryRequest (uint8_t groupMask, bool relative, bool reversed, uint8_t trajectoryId, float timescale) |
| crtpCommanderHighLevelStopRequest (uint8_t groupMask) |
| crtpCommanderHighLevelTakeoffRequest (uint8_t groupMask, float height, float duration) |
| crtpEmergencyStopRequest () |
| crtpEmergencyStopWatchdogRequest () |
| crtpExternalPosePacked () |
| crtpExternalPoseUpdate (float x, float y, float z, float qx, float qy, float qz, float qw) |
| crtpExternalPositionPacked () |
| crtpExternalPositionUpdate (float x, float y, float z) |
| crtpFullStateSetpointRequest (float x, float y, float z, float vx, float vy, float vz, float ax, float ay, float az, float qx, float qy, float qz, float qw, float rollRate, float pitchRate, float yawRate) |
| crtpGetDeviceTypeNameRequest () |
| crtpGetFirmwareVersionRequest () |
| crtpGetProtocolVersionRequest () |
| crtpHoverSetpointRequest (float vx, float vy, float yawrate, float zDistance) |
| crtpLogCreateBlockRequest () |
| crtpLogCreateBlockV2Request () |
| crtpLogGetInfoRequest () |
| crtpLogGetInfoV2Request () |
| crtpLogGetItemRequest (uint8_t id) |
| crtpLogGetItemV2Request (uint16_t id) |
| crtpLogResetRequest () |
| crtpLogStartRequest (uint8_t id, uint8_t period) |
| crtpLogStopRequest (uint8_t id) |
| crtpMemoryGetInfoRequest (uint8_t memId) |
| crtpMemoryGetNumberRequest () |
| crtpMemoryReadRequest (uint8_t memId, uint32_t memAddr, uint8_t length) |
| crtpMemoryWriteRequest (uint8_t memId, uint32_t memAddr) |
| crtpParamReadRequest (uint8_t id) |
| crtpParamReadV2Request (uint16_t id) |
| crtpParamTocGetInfoRequest () |
| crtpParamTocGetInfoV2Request () |
| crtpParamTocGetItemRequest (uint8_t id) |
| crtpParamTocGetItemV2Request (uint16_t id) |
| crtpParamWriteRequest (uint8_t id, const T &value) |
| crtpParamWriteV2Request (uint16_t id, const T &value) |
| crtpPositionSetpointRequest (float x, float y, float z, float yaw) |
| crtpSetpointRequest (float roll, float pitch, float yawrate, uint16_t thrust) |
| crtpStopRequest () |
static bool | match (const Crazyradio::Ack &response) |
bool | operator== (const crtp &other) const |
bool | operator== (const crtpParamTocGetItemRequest &other) const |
bool | operator== (const crtpParamTocGetInfoRequest &other) const |
bool | operator== (const crtpParamReadRequest &other) const |
bool | operator== (const crtpParamTocGetItemV2Request &other) const |
bool | operator== (const crtpParamTocGetInfoV2Request &other) const |
bool | operator== (const crtpParamReadV2Request &other) const |
bool | operator== (const crtpLogGetInfoRequest &other) const |
bool | operator== (const crtpLogGetItemRequest &other) const |
bool | operator== (const crtpLogGetInfoV2Request &other) const |
bool | operator== (const crtpLogGetItemV2Request &other) const |
void | quatdecompress (uint32_t comp, float q[4]) |
Variables |
typedef | __attribute__ |
int16_t | ax |
int16_t | ay |
int16_t | az |
uint8_t | blockId |
uint8_t | channel |
const uint8_t | cmd = 0 |
const uint8_t | command |
uint32_t | crc |
static int const | CRTP_MAX_DATA_SIZE = 30 |
static int const | CRTP_MAXSIZE = 31 |
static int const | CRTP_MAXSIZE_RESPONSE = 32 |
uint8_t | data [24] |
struct trajectoryDescription | description |
float | duration |
uint8_t | group |
uint8_t | groupMask |
const crtp | header |
float | height |
uint8_t | id |
logBlockItem | items [14] |
uint8_t | length |
uint8_t | link |
uint32_t | log_crc |
uint8_t | log_len |
uint8_t | log_max_ops |
uint8_t | log_max_packet |
uint8_t | logType |
uint64_t | memAddr |
uint8_t | memId |
uint32_t | memSize |
crtpMemoryType | memType |
uint8_t | n_pieces |
char | name [30] |
uint8_t | numberOfMemories |
uint8_t | numParam |
uint32_t | offset |
int16_t | omegax |
int16_t | omegay |
int16_t | omegaz |
uint8_t | period |
float | pitch |
uint8_t | port |
uint32_t | quat |
float | qw |
float | qx |
float | qy |
float | qz |
uint8_t | readonly |
uint8_t | relative |
crtpParamTocGetItemRequest | request |
uint8_t | requestByte1 |
uint8_t | res0 |
uint8_t | result |
uint8_t | reversed |
float | roll |
uint8_t | sign |
uint8_t | status |
char | text [28] |
uint16_t | thrust |
float | timescale |
uint16_t | timestampHi |
uint8_t | timestampLo |
uint8_t | trajectoryId |
union { |
} | trajectoryIdentifier |
uint8_t | trajectoryLocation |
uint8_t | trajectoryType |
uint8_t | type = 3 |
const T | value |
int | version |
float | vx |
float | vy |
int16_t | vz |
float | x |
float | y |
float | yaw |
float | yawrate |
float | z |
float | zDistance |