Classes | Macros | Typedefs | Functions
mavlink_msg_vfr_hud.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_vfr_hud_t
 

Macros

#define MAVLINK_MESSAGE_INFO_VFR_HUD
 
#define MAVLINK_MSG_ID_74_CRC   20
 
#define MAVLINK_MSG_ID_74_LEN   20
 
#define MAVLINK_MSG_ID_VFR_HUD   74
 
#define MAVLINK_MSG_ID_VFR_HUD_CRC   20
 
#define MAVLINK_MSG_ID_VFR_HUD_LEN   20
 

Typedefs

typedef struct __mavlink_vfr_hud_t mavlink_vfr_hud_t
 

Functions

static void mavlink_msg_vfr_hud_decode (const mavlink_message_t *msg, mavlink_vfr_hud_t *vfr_hud)
 Decode a vfr_hud message into a struct. More...
 
static uint16_t mavlink_msg_vfr_hud_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_vfr_hud_t *vfr_hud)
 Encode a vfr_hud struct. More...
 
static uint16_t mavlink_msg_vfr_hud_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_vfr_hud_t *vfr_hud)
 Encode a vfr_hud struct on a channel. More...
 
static float mavlink_msg_vfr_hud_get_airspeed (const mavlink_message_t *msg)
 Send a vfr_hud message. More...
 
static float mavlink_msg_vfr_hud_get_alt (const mavlink_message_t *msg)
 Get field alt from vfr_hud message. More...
 
static float mavlink_msg_vfr_hud_get_climb (const mavlink_message_t *msg)
 Get field climb from vfr_hud message. More...
 
static float mavlink_msg_vfr_hud_get_groundspeed (const mavlink_message_t *msg)
 Get field groundspeed from vfr_hud message. More...
 
static int16_t mavlink_msg_vfr_hud_get_heading (const mavlink_message_t *msg)
 Get field heading from vfr_hud message. More...
 
static uint16_t mavlink_msg_vfr_hud_get_throttle (const mavlink_message_t *msg)
 Get field throttle from vfr_hud message. More...
 
static uint16_t mavlink_msg_vfr_hud_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float airspeed, float groundspeed, int16_t heading, uint16_t throttle, float alt, float climb)
 Pack a vfr_hud message. More...
 
static uint16_t mavlink_msg_vfr_hud_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float airspeed, float groundspeed, int16_t heading, uint16_t throttle, float alt, float climb)
 Pack a vfr_hud message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_VFR_HUD
Value:
{ \
"VFR_HUD", \
6, \
{ { "airspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_vfr_hud_t, airspeed) }, \
{ "groundspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_vfr_hud_t, groundspeed) }, \
{ "alt", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_vfr_hud_t, alt) }, \
{ "climb", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_vfr_hud_t, climb) }, \
{ "heading", NULL, MAVLINK_TYPE_INT16_T, 0, 16, offsetof(mavlink_vfr_hud_t, heading) }, \
{ "throttle", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_vfr_hud_t, throttle) }, \
} \
}
float alt(float press)
Definition: turbomath.cpp:518
#define NULL
Definition: usbd_def.h:50

Definition at line 23 of file mavlink_msg_vfr_hud.h.

#define MAVLINK_MSG_ID_74_CRC   20

Definition at line 19 of file mavlink_msg_vfr_hud.h.

#define MAVLINK_MSG_ID_74_LEN   20

Definition at line 16 of file mavlink_msg_vfr_hud.h.

#define MAVLINK_MSG_ID_VFR_HUD   74

Definition at line 3 of file mavlink_msg_vfr_hud.h.

#define MAVLINK_MSG_ID_VFR_HUD_CRC   20

Definition at line 18 of file mavlink_msg_vfr_hud.h.

#define MAVLINK_MSG_ID_VFR_HUD_LEN   20

Definition at line 15 of file mavlink_msg_vfr_hud.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_vfr_hud_decode ( const mavlink_message_t *  msg,
mavlink_vfr_hud_t vfr_hud 
)
inlinestatic

Decode a vfr_hud message into a struct.

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

Definition at line 317 of file mavlink_msg_vfr_hud.h.

static uint16_t mavlink_msg_vfr_hud_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_vfr_hud_t vfr_hud 
)
inlinestatic

Encode a vfr_hud 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
vfr_hudC-struct to read the message contents from

Definition at line 139 of file mavlink_msg_vfr_hud.h.

static uint16_t mavlink_msg_vfr_hud_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_vfr_hud_t vfr_hud 
)
inlinestatic

Encode a vfr_hud 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
vfr_hudC-struct to read the message contents from

Definition at line 153 of file mavlink_msg_vfr_hud.h.

static float mavlink_msg_vfr_hud_get_airspeed ( const mavlink_message_t *  msg)
inlinestatic

Send a vfr_hud message.

Parameters
chanMAVLink channel to send the message
airspeedCurrent airspeed in m/s
groundspeedCurrent ground speed in m/s
headingCurrent heading in degrees, in compass units (0..360, 0=north)
throttleCurrent throttle setting in integer percent, 0 to 100
altCurrent altitude (MSL), in meters
climbCurrent climb rate in meters/second Get field airspeed from vfr_hud message
Returns
Current airspeed in m/s

Definition at line 256 of file mavlink_msg_vfr_hud.h.

static float mavlink_msg_vfr_hud_get_alt ( const mavlink_message_t *  msg)
inlinestatic

Get field alt from vfr_hud message.

Returns
Current altitude (MSL), in meters

Definition at line 296 of file mavlink_msg_vfr_hud.h.

static float mavlink_msg_vfr_hud_get_climb ( const mavlink_message_t *  msg)
inlinestatic

Get field climb from vfr_hud message.

Returns
Current climb rate in meters/second

Definition at line 306 of file mavlink_msg_vfr_hud.h.

static float mavlink_msg_vfr_hud_get_groundspeed ( const mavlink_message_t *  msg)
inlinestatic

Get field groundspeed from vfr_hud message.

Returns
Current ground speed in m/s

Definition at line 266 of file mavlink_msg_vfr_hud.h.

static int16_t mavlink_msg_vfr_hud_get_heading ( const mavlink_message_t *  msg)
inlinestatic

Get field heading from vfr_hud message.

Returns
Current heading in degrees, in compass units (0..360, 0=north)

Definition at line 276 of file mavlink_msg_vfr_hud.h.

static uint16_t mavlink_msg_vfr_hud_get_throttle ( const mavlink_message_t *  msg)
inlinestatic

Get field throttle from vfr_hud message.

Returns
Current throttle setting in integer percent, 0 to 100

Definition at line 286 of file mavlink_msg_vfr_hud.h.

static uint16_t mavlink_msg_vfr_hud_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
float  airspeed,
float  groundspeed,
int16_t  heading,
uint16_t  throttle,
float  alt,
float  climb 
)
inlinestatic

Pack a vfr_hud 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
airspeedCurrent airspeed in m/s
groundspeedCurrent ground speed in m/s
headingCurrent heading in degrees, in compass units (0..360, 0=north)
throttleCurrent throttle setting in integer percent, 0 to 100
altCurrent altitude (MSL), in meters
climbCurrent climb rate in meters/second
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 50 of file mavlink_msg_vfr_hud.h.

static uint16_t mavlink_msg_vfr_hud_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
float  airspeed,
float  groundspeed,
int16_t  heading,
uint16_t  throttle,
float  alt,
float  climb 
)
inlinestatic

Pack a vfr_hud 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
airspeedCurrent airspeed in m/s
groundspeedCurrent ground speed in m/s
headingCurrent heading in degrees, in compass units (0..360, 0=north)
throttleCurrent throttle setting in integer percent, 0 to 100
altCurrent altitude (MSL), in meters
climbCurrent climb rate in meters/second
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 97 of file mavlink_msg_vfr_hud.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:21