Classes | Macros | Typedefs | Functions
mavlink_msg_global_position_int.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __mavlink_global_position_int_t
 

Macros

#define MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT
 
#define MAVLINK_MSG_ID_33_CRC   104
 
#define MAVLINK_MSG_ID_33_LEN   28
 
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT   33
 
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_CRC   104
 
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_LEN   28
 

Typedefs

typedef struct __mavlink_global_position_int_t mavlink_global_position_int_t
 

Functions

static void mavlink_msg_global_position_int_decode (const mavlink_message_t *msg, mavlink_global_position_int_t *global_position_int)
 Decode a global_position_int message into a struct. More...
 
static uint16_t mavlink_msg_global_position_int_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_global_position_int_t *global_position_int)
 Encode a global_position_int struct. More...
 
static uint16_t mavlink_msg_global_position_int_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_global_position_int_t *global_position_int)
 Encode a global_position_int struct on a channel. More...
 
static int32_t mavlink_msg_global_position_int_get_alt (const mavlink_message_t *msg)
 Get field alt from global_position_int message. More...
 
static uint16_t mavlink_msg_global_position_int_get_hdg (const mavlink_message_t *msg)
 Get field hdg from global_position_int message. More...
 
static int32_t mavlink_msg_global_position_int_get_lat (const mavlink_message_t *msg)
 Get field lat from global_position_int message. More...
 
static int32_t mavlink_msg_global_position_int_get_lon (const mavlink_message_t *msg)
 Get field lon from global_position_int message. More...
 
static int32_t mavlink_msg_global_position_int_get_relative_alt (const mavlink_message_t *msg)
 Get field relative_alt from global_position_int message. More...
 
static uint32_t mavlink_msg_global_position_int_get_time_boot_ms (const mavlink_message_t *msg)
 Send a global_position_int message. More...
 
static int16_t mavlink_msg_global_position_int_get_vx (const mavlink_message_t *msg)
 Get field vx from global_position_int message. More...
 
static int16_t mavlink_msg_global_position_int_get_vy (const mavlink_message_t *msg)
 Get field vy from global_position_int message. More...
 
static int16_t mavlink_msg_global_position_int_get_vz (const mavlink_message_t *msg)
 Get field vz from global_position_int message. More...
 
static uint16_t mavlink_msg_global_position_int_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t hdg)
 Pack a global_position_int message. More...
 
static uint16_t mavlink_msg_global_position_int_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t hdg)
 Pack a global_position_int message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT
Value:
{ \
"GLOBAL_POSITION_INT", \
9, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_global_position_int_t, time_boot_ms) }, \
{ "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_global_position_int_t, lat) }, \
{ "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_global_position_int_t, lon) }, \
{ "alt", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_global_position_int_t, alt) }, \
{ "relative_alt", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_global_position_int_t, relative_alt) }, \
{ "vx", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_global_position_int_t, vx) }, \
{ "vy", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_global_position_int_t, vy) }, \
{ "vz", NULL, MAVLINK_TYPE_INT16_T, 0, 24, offsetof(mavlink_global_position_int_t, vz) }, \
{ "hdg", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_global_position_int_t, hdg) }, \
} \
}
float alt(float press)
Definition: turbomath.cpp:549
#define NULL
Definition: usbd_def.h:50

Definition at line 26 of file mavlink_msg_global_position_int.h.

#define MAVLINK_MSG_ID_33_CRC   104

Definition at line 22 of file mavlink_msg_global_position_int.h.

#define MAVLINK_MSG_ID_33_LEN   28

Definition at line 19 of file mavlink_msg_global_position_int.h.

#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT   33

Definition at line 3 of file mavlink_msg_global_position_int.h.

#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_CRC   104

Definition at line 21 of file mavlink_msg_global_position_int.h.

#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_LEN   28

Definition at line 18 of file mavlink_msg_global_position_int.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_global_position_int_decode ( const mavlink_message_t *  msg,
mavlink_global_position_int_t global_position_int 
)
inlinestatic

Decode a global_position_int message into a struct.

Parameters
msgThe message to decode
global_position_intC-struct to decode the message contents into

Definition at line 386 of file mavlink_msg_global_position_int.h.

static uint16_t mavlink_msg_global_position_int_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_global_position_int_t global_position_int 
)
inlinestatic

Encode a global_position_int struct.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
global_position_intC-struct to read the message contents from

Definition at line 163 of file mavlink_msg_global_position_int.h.

static uint16_t mavlink_msg_global_position_int_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_global_position_int_t global_position_int 
)
inlinestatic

Encode a global_position_int struct on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
global_position_intC-struct to read the message contents from

Definition at line 177 of file mavlink_msg_global_position_int.h.

static int32_t mavlink_msg_global_position_int_get_alt ( const mavlink_message_t *  msg)
inlinestatic

Get field alt from global_position_int message.

Returns
Altitude in meters, expressed as * 1000 (millimeters), AMSL (not WGS84 - note that virtually all GPS modules provide the AMSL as well)

Definition at line 325 of file mavlink_msg_global_position_int.h.

static uint16_t mavlink_msg_global_position_int_get_hdg ( const mavlink_message_t *  msg)
inlinestatic

Get field hdg from global_position_int message.

Returns
Vehicle heading (yaw angle) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX

Definition at line 375 of file mavlink_msg_global_position_int.h.

static int32_t mavlink_msg_global_position_int_get_lat ( const mavlink_message_t *  msg)
inlinestatic

Get field lat from global_position_int message.

Returns
Latitude, expressed as degrees * 1E7

Definition at line 305 of file mavlink_msg_global_position_int.h.

static int32_t mavlink_msg_global_position_int_get_lon ( const mavlink_message_t *  msg)
inlinestatic

Get field lon from global_position_int message.

Returns
Longitude, expressed as degrees * 1E7

Definition at line 315 of file mavlink_msg_global_position_int.h.

static int32_t mavlink_msg_global_position_int_get_relative_alt ( const mavlink_message_t *  msg)
inlinestatic

Get field relative_alt from global_position_int message.

Returns
Altitude above ground in meters, expressed as * 1000 (millimeters)

Definition at line 335 of file mavlink_msg_global_position_int.h.

static uint32_t mavlink_msg_global_position_int_get_time_boot_ms ( const mavlink_message_t *  msg)
inlinestatic

Send a global_position_int message.

Parameters
chanMAVLink channel to send the message
time_boot_msTimestamp (milliseconds since system boot)
latLatitude, expressed as degrees * 1E7
lonLongitude, expressed as degrees * 1E7
altAltitude in meters, expressed as * 1000 (millimeters), AMSL (not WGS84 - note that virtually all GPS modules provide the AMSL as well)
relative_altAltitude above ground in meters, expressed as * 1000 (millimeters)
vxGround X Speed (Latitude, positive north), expressed as m/s * 100
vyGround Y Speed (Longitude, positive east), expressed as m/s * 100
vzGround Z Speed (Altitude, positive down), expressed as m/s * 100
hdgVehicle heading (yaw angle) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX Get field time_boot_ms from global_position_int message
Returns
Timestamp (milliseconds since system boot)

Definition at line 295 of file mavlink_msg_global_position_int.h.

static int16_t mavlink_msg_global_position_int_get_vx ( const mavlink_message_t *  msg)
inlinestatic

Get field vx from global_position_int message.

Returns
Ground X Speed (Latitude, positive north), expressed as m/s * 100

Definition at line 345 of file mavlink_msg_global_position_int.h.

static int16_t mavlink_msg_global_position_int_get_vy ( const mavlink_message_t *  msg)
inlinestatic

Get field vy from global_position_int message.

Returns
Ground Y Speed (Longitude, positive east), expressed as m/s * 100

Definition at line 355 of file mavlink_msg_global_position_int.h.

static int16_t mavlink_msg_global_position_int_get_vz ( const mavlink_message_t *  msg)
inlinestatic

Get field vz from global_position_int message.

Returns
Ground Z Speed (Altitude, positive down), expressed as m/s * 100

Definition at line 365 of file mavlink_msg_global_position_int.h.

static uint16_t mavlink_msg_global_position_int_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint32_t  time_boot_ms,
int32_t  lat,
int32_t  lon,
int32_t  alt,
int32_t  relative_alt,
int16_t  vx,
int16_t  vy,
int16_t  vz,
uint16_t  hdg 
)
inlinestatic

Pack a global_position_int message.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
time_boot_msTimestamp (milliseconds since system boot)
latLatitude, expressed as degrees * 1E7
lonLongitude, expressed as degrees * 1E7
altAltitude in meters, expressed as * 1000 (millimeters), AMSL (not WGS84 - note that virtually all GPS modules provide the AMSL as well)
relative_altAltitude above ground in meters, expressed as * 1000 (millimeters)
vxGround X Speed (Latitude, positive north), expressed as m/s * 100
vyGround Y Speed (Longitude, positive east), expressed as m/s * 100
vzGround Z Speed (Altitude, positive down), expressed as m/s * 100
hdgVehicle heading (yaw angle) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 59 of file mavlink_msg_global_position_int.h.

static uint16_t mavlink_msg_global_position_int_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint32_t  time_boot_ms,
int32_t  lat,
int32_t  lon,
int32_t  alt,
int32_t  relative_alt,
int16_t  vx,
int16_t  vy,
int16_t  vz,
uint16_t  hdg 
)
inlinestatic

Pack a global_position_int message on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
time_boot_msTimestamp (milliseconds since system boot)
latLatitude, expressed as degrees * 1E7
lonLongitude, expressed as degrees * 1E7
altAltitude in meters, expressed as * 1000 (millimeters), AMSL (not WGS84 - note that virtually all GPS modules provide the AMSL as well)
relative_altAltitude above ground in meters, expressed as * 1000 (millimeters)
vxGround X Speed (Latitude, positive north), expressed as m/s * 100
vyGround Y Speed (Longitude, positive east), expressed as m/s * 100
vzGround Z Speed (Altitude, positive down), expressed as m/s * 100
hdgVehicle heading (yaw angle) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 115 of file mavlink_msg_global_position_int.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:26