#include <stdint.h>
Go to the source code of this file.
#define _MAV_PAYLOAD | ( | msg | ) | ((const char *)(&((msg)->payload64[0]))) |
Definition at line 152 of file include_v2.0/mavlink_types.h.
#define _MAV_PAYLOAD_NON_CONST | ( | msg | ) | ((char *)(&((msg)->payload64[0]))) |
Definition at line 153 of file include_v2.0/mavlink_types.h.
#define MAV_MSG_ENTRY_FLAG_HAVE_TARGET_COMPONENT 2 |
Definition at line 271 of file include_v2.0/mavlink_types.h.
#define MAV_MSG_ENTRY_FLAG_HAVE_TARGET_SYSTEM 1 |
Definition at line 270 of file include_v2.0/mavlink_types.h.
#define MAVLINK_BIG_ENDIAN 0 |
Definition at line 267 of file include_v2.0/mavlink_types.h.
#define mavlink_ck_a | ( | msg | ) | *((msg)->len + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg)) |
Definition at line 156 of file include_v2.0/mavlink_types.h.
#define mavlink_ck_b | ( | msg | ) | *(((msg)->len+(uint16_t)1) + (uint8_t *)_MAV_PAYLOAD_NON_CONST(msg)) |
Definition at line 157 of file include_v2.0/mavlink_types.h.
#define MAVLINK_CORE_HEADER_LEN 9 |
Length of core header (of the comm. layer)
Definition at line 23 of file include_v2.0/mavlink_types.h.
#define MAVLINK_CORE_HEADER_MAVLINK1_LEN 5 |
Length of MAVLink1 core header (of the comm. layer)
Definition at line 24 of file include_v2.0/mavlink_types.h.
#define MAVLINK_IFLAG_MASK 0x01 |
Definition at line 289 of file include_v2.0/mavlink_types.h.
#define MAVLINK_IFLAG_SIGNED 0x01 |
Definition at line 288 of file include_v2.0/mavlink_types.h.
#define MAVLINK_LITTLE_ENDIAN 1 |
Definition at line 268 of file include_v2.0/mavlink_types.h.
#define MAVLINK_MAX_FIELDS 64 |
Definition at line 132 of file include_v2.0/mavlink_types.h.
#define MAVLINK_MAX_PACKET_LEN (MAVLINK_MAX_PAYLOAD_LEN + MAVLINK_NUM_NON_PAYLOAD_BYTES + MAVLINK_SIGNATURE_BLOCK_LEN) |
Maximum packet length.
Definition at line 31 of file include_v2.0/mavlink_types.h.
#define MAVLINK_NUM_CHECKSUM_BYTES 2 |
Definition at line 26 of file include_v2.0/mavlink_types.h.
#define MAVLINK_NUM_HEADER_BYTES (MAVLINK_CORE_HEADER_LEN + 1) |
Length of all header bytes, including core and stx.
Definition at line 25 of file include_v2.0/mavlink_types.h.
Definition at line 27 of file include_v2.0/mavlink_types.h.
#define MAVLINK_SIGNATURE_BLOCK_LEN 13 |
Definition at line 29 of file include_v2.0/mavlink_types.h.
#define MAVLINK_SIGNING_FLAG_SIGN_OUTGOING 1 |
Definition at line 236 of file include_v2.0/mavlink_types.h.
#define MAVLINK_STATUS_FLAG_IN_BADSIG 8 |
Definition at line 208 of file include_v2.0/mavlink_types.h.
#define MAVLINK_STATUS_FLAG_IN_MAVLINK1 1 |
Definition at line 205 of file include_v2.0/mavlink_types.h.
#define MAVLINK_STATUS_FLAG_IN_SIGNED 4 |
Definition at line 207 of file include_v2.0/mavlink_types.h.
#define MAVLINK_STATUS_FLAG_OUT_MAVLINK1 2 |
Definition at line 206 of file include_v2.0/mavlink_types.h.
#define MAVLINK_STX_MAVLINK1 0xFE |
Definition at line 210 of file include_v2.0/mavlink_types.h.
#define MAVPACKED | ( | __Declaration__ | ) | __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) ) |
Definition at line 15 of file include_v2.0/mavlink_types.h.
typedef bool(* mavlink_accept_unsigned_t)(const mavlink_status_t *status, uint32_t msgid) |
Definition at line 231 of file include_v2.0/mavlink_types.h.
typedef struct __mavlink_field_info mavlink_field_info_t |
typedef struct __mavlink_message_info mavlink_message_info_t |
typedef struct __mavlink_msg_entry mavlink_msg_entry_t |
typedef struct __mavlink_signing_streams mavlink_signing_streams_t |
typedef struct __mavlink_signing mavlink_signing_t |
typedef struct __mavlink_status mavlink_status_t |
enum mavlink_channel_t |
MAVLINK_COMM_0 | |
MAVLINK_COMM_1 | |
MAVLINK_COMM_2 | |
MAVLINK_COMM_3 | |
MAVLINK_COMM_0 | |
MAVLINK_COMM_1 | |
MAVLINK_COMM_2 | |
MAVLINK_COMM_3 | |
MAVLINK_COMM_0 | |
MAVLINK_COMM_1 | |
MAVLINK_COMM_2 | |
MAVLINK_COMM_3 |
Definition at line 159 of file include_v2.0/mavlink_types.h.
enum mavlink_framing_t |
MAVLINK_FRAMING_INCOMPLETE | |
MAVLINK_FRAMING_OK | |
MAVLINK_FRAMING_BAD_CRC | |
MAVLINK_FRAMING_INCOMPLETE | |
MAVLINK_FRAMING_OK | |
MAVLINK_FRAMING_BAD_CRC | |
MAVLINK_FRAMING_BAD_SIGNATURE |
Definition at line 198 of file include_v2.0/mavlink_types.h.
Definition at line 118 of file include_v2.0/mavlink_types.h.
Definition at line 179 of file include_v2.0/mavlink_types.h.
MAVPACKED | ( | ) |
Old-style 4 byte param union
This struct is the data format to be used when sending parameters. The parameter should be copied to the native type (without type conversion) and re-instanted on the receiving side using the native type as well.
New-style 8 byte param union mavlink_param_union_double_t will be 8 bytes long, and treated as needing 8 byte alignment for the purposes of MAVLink 1.0 field ordering. The mavlink_param_union_double_t will be treated as a little-endian structure.
If is_double is 1 then the type is a double, and the remaining 63 bits are the double, with the lowest bit of the mantissa zero. The intention is that by replacing the is_double bit with 0 the type can be directly used as a double (as the is_double bit corresponds to the lowest mantissa bit of a double). If is_double is 0 then mavlink_type gives the type in the union. The mavlink_types.h header will also need to have shifts/masks to define the bit boundaries in the above, as bitfield ordering isn’t consistent between platforms. The above is intended to be for gcc on x86, which should be the same as gcc on little-endian arm. When using shifts/masks the value will be treated as a 64 bit unsigned number, and the bits pulled out using the shifts/masks.
This structure is required to make the mavlink_send_xxx convenience functions work, as it tells the library what the current system and component ID are.