Go to the source code of this file.
Classes | |
struct | __mavlink_terrain_request_t |
Defines | |
#define | MAVLINK_MESSAGE_INFO_TERRAIN_REQUEST |
#define | MAVLINK_MSG_ID_133_CRC 6 |
#define | MAVLINK_MSG_ID_133_LEN 18 |
#define | MAVLINK_MSG_ID_TERRAIN_REQUEST 133 |
#define | MAVLINK_MSG_ID_TERRAIN_REQUEST_CRC 6 |
#define | MAVLINK_MSG_ID_TERRAIN_REQUEST_LEN 18 |
Typedefs | |
typedef struct __mavlink_terrain_request_t | mavlink_terrain_request_t |
Functions | |
static void | mavlink_msg_terrain_request_decode (const mavlink_message_t *msg, mavlink_terrain_request_t *terrain_request) |
Decode a terrain_request message into a struct. | |
static uint16_t | mavlink_msg_terrain_request_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_terrain_request_t *terrain_request) |
Encode a terrain_request struct. | |
static uint16_t | mavlink_msg_terrain_request_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_terrain_request_t *terrain_request) |
Encode a terrain_request struct on a channel. | |
static uint16_t | mavlink_msg_terrain_request_get_grid_spacing (const mavlink_message_t *msg) |
Get field grid_spacing from terrain_request message. | |
static int32_t | mavlink_msg_terrain_request_get_lat (const mavlink_message_t *msg) |
Send a terrain_request message. | |
static int32_t | mavlink_msg_terrain_request_get_lon (const mavlink_message_t *msg) |
Get field lon from terrain_request message. | |
static uint64_t | mavlink_msg_terrain_request_get_mask (const mavlink_message_t *msg) |
Get field mask from terrain_request message. | |
static uint16_t | mavlink_msg_terrain_request_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, int32_t lat, int32_t lon, uint16_t grid_spacing, uint64_t mask) |
Pack a terrain_request message. | |
static uint16_t | mavlink_msg_terrain_request_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, int32_t lat, int32_t lon, uint16_t grid_spacing, uint64_t mask) |
Pack a terrain_request message on a channel. |
{ \ "TERRAIN_REQUEST", \ 4, \ { { "mask", "0x%07x", MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_terrain_request_t, mask) }, \ { "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_terrain_request_t, lat) }, \ { "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_terrain_request_t, lon) }, \ { "grid_spacing", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_terrain_request_t, grid_spacing) }, \ } \ }
Definition at line 21 of file mavlink_msg_terrain_request.h.
#define MAVLINK_MSG_ID_133_CRC 6 |
Definition at line 17 of file mavlink_msg_terrain_request.h.
#define MAVLINK_MSG_ID_133_LEN 18 |
Definition at line 14 of file mavlink_msg_terrain_request.h.
#define MAVLINK_MSG_ID_TERRAIN_REQUEST 133 |
Definition at line 3 of file mavlink_msg_terrain_request.h.
#define MAVLINK_MSG_ID_TERRAIN_REQUEST_CRC 6 |
Definition at line 16 of file mavlink_msg_terrain_request.h.
#define MAVLINK_MSG_ID_TERRAIN_REQUEST_LEN 18 |
Definition at line 13 of file mavlink_msg_terrain_request.h.
typedef struct __mavlink_terrain_request_t mavlink_terrain_request_t |
static void mavlink_msg_terrain_request_decode | ( | const mavlink_message_t * | msg, |
mavlink_terrain_request_t * | terrain_request | ||
) | [inline, static] |
Decode a terrain_request message into a struct.
msg | The message to decode |
terrain_request | C-struct to decode the message contents into |
Definition at line 271 of file mavlink_msg_terrain_request.h.
static uint16_t mavlink_msg_terrain_request_encode | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
mavlink_message_t * | msg, | ||
const mavlink_terrain_request_t * | terrain_request | ||
) | [inline, static] |
Encode a terrain_request struct.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
terrain_request | C-struct to read the message contents from |
Definition at line 123 of file mavlink_msg_terrain_request.h.
static uint16_t mavlink_msg_terrain_request_encode_chan | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
uint8_t | chan, | ||
mavlink_message_t * | msg, | ||
const mavlink_terrain_request_t * | terrain_request | ||
) | [inline, static] |
Encode a terrain_request struct on a channel.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
terrain_request | C-struct to read the message contents from |
Definition at line 137 of file mavlink_msg_terrain_request.h.
static uint16_t mavlink_msg_terrain_request_get_grid_spacing | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field grid_spacing from terrain_request message.
Definition at line 250 of file mavlink_msg_terrain_request.h.
static int32_t mavlink_msg_terrain_request_get_lat | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Send a terrain_request message.
chan | MAVLink channel to send the message |
lat | Latitude of SW corner of first grid (degrees *10^7) |
lon | Longitude of SW corner of first grid (in degrees *10^7) |
grid_spacing | Grid spacing in meters |
mask | Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) Get field lat from terrain_request message |
Definition at line 230 of file mavlink_msg_terrain_request.h.
static int32_t mavlink_msg_terrain_request_get_lon | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field lon from terrain_request message.
Definition at line 240 of file mavlink_msg_terrain_request.h.
static uint64_t mavlink_msg_terrain_request_get_mask | ( | const mavlink_message_t * | msg | ) | [inline, static] |
Get field mask from terrain_request message.
Definition at line 260 of file mavlink_msg_terrain_request.h.
static uint16_t mavlink_msg_terrain_request_pack | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
mavlink_message_t * | msg, | ||
int32_t | lat, | ||
int32_t | lon, | ||
uint16_t | grid_spacing, | ||
uint64_t | mask | ||
) | [inline, static] |
Pack a terrain_request message.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
lat | Latitude of SW corner of first grid (degrees *10^7) |
lon | Longitude of SW corner of first grid (in degrees *10^7) |
grid_spacing | Grid spacing in meters |
mask | Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) |
Definition at line 44 of file mavlink_msg_terrain_request.h.
static uint16_t mavlink_msg_terrain_request_pack_chan | ( | uint8_t | system_id, |
uint8_t | component_id, | ||
uint8_t | chan, | ||
mavlink_message_t * | msg, | ||
int32_t | lat, | ||
int32_t | lon, | ||
uint16_t | grid_spacing, | ||
uint64_t | mask | ||
) | [inline, static] |
Pack a terrain_request message on a channel.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
lat | Latitude of SW corner of first grid (degrees *10^7) |
lon | Longitude of SW corner of first grid (in degrees *10^7) |
grid_spacing | Grid spacing in meters |
mask | Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits) |
Definition at line 85 of file mavlink_msg_terrain_request.h.