Classes | Macros | Typedefs | Functions
mavlink_msg_hil_gps.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_hil_gps_t
 

Macros

#define MAVLINK_MESSAGE_INFO_HIL_GPS
 
#define MAVLINK_MSG_ID_113_CRC   124
 
#define MAVLINK_MSG_ID_113_LEN   36
 
#define MAVLINK_MSG_ID_HIL_GPS   113
 
#define MAVLINK_MSG_ID_HIL_GPS_CRC   124
 
#define MAVLINK_MSG_ID_HIL_GPS_LEN   36
 

Typedefs

typedef struct __mavlink_hil_gps_t mavlink_hil_gps_t
 

Functions

static void mavlink_msg_hil_gps_decode (const mavlink_message_t *msg, mavlink_hil_gps_t *hil_gps)
 Decode a hil_gps message into a struct. More...
 
static uint16_t mavlink_msg_hil_gps_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_hil_gps_t *hil_gps)
 Encode a hil_gps struct. More...
 
static uint16_t mavlink_msg_hil_gps_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_hil_gps_t *hil_gps)
 Encode a hil_gps struct on a channel. More...
 
static int32_t mavlink_msg_hil_gps_get_alt (const mavlink_message_t *msg)
 Get field alt from hil_gps message. More...
 
static uint16_t mavlink_msg_hil_gps_get_cog (const mavlink_message_t *msg)
 Get field cog from hil_gps message. More...
 
static uint16_t mavlink_msg_hil_gps_get_eph (const mavlink_message_t *msg)
 Get field eph from hil_gps message. More...
 
static uint16_t mavlink_msg_hil_gps_get_epv (const mavlink_message_t *msg)
 Get field epv from hil_gps message. More...
 
static uint8_t mavlink_msg_hil_gps_get_fix_type (const mavlink_message_t *msg)
 Get field fix_type from hil_gps message. More...
 
static int32_t mavlink_msg_hil_gps_get_lat (const mavlink_message_t *msg)
 Get field lat from hil_gps message. More...
 
static int32_t mavlink_msg_hil_gps_get_lon (const mavlink_message_t *msg)
 Get field lon from hil_gps message. More...
 
static uint8_t mavlink_msg_hil_gps_get_satellites_visible (const mavlink_message_t *msg)
 Get field satellites_visible from hil_gps message. More...
 
static uint64_t mavlink_msg_hil_gps_get_time_usec (const mavlink_message_t *msg)
 Send a hil_gps message. More...
 
static int16_t mavlink_msg_hil_gps_get_vd (const mavlink_message_t *msg)
 Get field vd from hil_gps message. More...
 
static int16_t mavlink_msg_hil_gps_get_ve (const mavlink_message_t *msg)
 Get field ve from hil_gps message. More...
 
static uint16_t mavlink_msg_hil_gps_get_vel (const mavlink_message_t *msg)
 Get field vel from hil_gps message. More...
 
static int16_t mavlink_msg_hil_gps_get_vn (const mavlink_message_t *msg)
 Get field vn from hil_gps message. More...
 
static uint16_t mavlink_msg_hil_gps_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, int16_t vn, int16_t ve, int16_t vd, uint16_t cog, uint8_t satellites_visible)
 Pack a hil_gps message. More...
 
static uint16_t mavlink_msg_hil_gps_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, uint8_t fix_type, int32_t lat, int32_t lon, int32_t alt, uint16_t eph, uint16_t epv, uint16_t vel, int16_t vn, int16_t ve, int16_t vd, uint16_t cog, uint8_t satellites_visible)
 Pack a hil_gps message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_HIL_GPS
Value:
{ \
"HIL_GPS", \
13, \
{ { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_hil_gps_t, time_usec) }, \
{ "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_hil_gps_t, lat) }, \
{ "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_hil_gps_t, lon) }, \
{ "alt", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_hil_gps_t, alt) }, \
{ "eph", NULL, MAVLINK_TYPE_UINT16_T, 0, 20, offsetof(mavlink_hil_gps_t, eph) }, \
{ "epv", NULL, MAVLINK_TYPE_UINT16_T, 0, 22, offsetof(mavlink_hil_gps_t, epv) }, \
{ "vel", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_hil_gps_t, vel) }, \
{ "vn", NULL, MAVLINK_TYPE_INT16_T, 0, 26, offsetof(mavlink_hil_gps_t, vn) }, \
{ "ve", NULL, MAVLINK_TYPE_INT16_T, 0, 28, offsetof(mavlink_hil_gps_t, ve) }, \
{ "vd", NULL, MAVLINK_TYPE_INT16_T, 0, 30, offsetof(mavlink_hil_gps_t, vd) }, \
{ "cog", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_hil_gps_t, cog) }, \
{ "fix_type", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_hil_gps_t, fix_type) }, \
{ "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_hil_gps_t, satellites_visible) }, \
} \
}
float alt(float press)
Definition: turbomath.cpp:470
#define NULL
Definition: usbd_def.h:50

Definition at line 30 of file mavlink_msg_hil_gps.h.

#define MAVLINK_MSG_ID_113_CRC   124

Definition at line 26 of file mavlink_msg_hil_gps.h.

#define MAVLINK_MSG_ID_113_LEN   36

Definition at line 23 of file mavlink_msg_hil_gps.h.

#define MAVLINK_MSG_ID_HIL_GPS   113

Definition at line 3 of file mavlink_msg_hil_gps.h.

#define MAVLINK_MSG_ID_HIL_GPS_CRC   124

Definition at line 25 of file mavlink_msg_hil_gps.h.

#define MAVLINK_MSG_ID_HIL_GPS_LEN   36

Definition at line 22 of file mavlink_msg_hil_gps.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_hil_gps_decode ( const mavlink_message_t *  msg,
mavlink_hil_gps_t hil_gps 
)
inlinestatic

Decode a hil_gps message into a struct.

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

Definition at line 478 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_hil_gps_t hil_gps 
)
inlinestatic

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

Definition at line 195 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_hil_gps_t hil_gps 
)
inlinestatic

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

Definition at line 209 of file mavlink_msg_hil_gps.h.

static int32_t mavlink_msg_hil_gps_get_alt ( const mavlink_message_t *  msg)
inlinestatic

Get field alt from hil_gps message.

Returns
Altitude (AMSL, not WGS84), in meters * 1000 (positive for up)

Definition at line 387 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_get_cog ( const mavlink_message_t *  msg)
inlinestatic

Get field cog from hil_gps message.

Returns
Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: 65535

Definition at line 457 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_get_eph ( const mavlink_message_t *  msg)
inlinestatic

Get field eph from hil_gps message.

Returns
GPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: 65535

Definition at line 397 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_get_epv ( const mavlink_message_t *  msg)
inlinestatic

Get field epv from hil_gps message.

Returns
GPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: 65535

Definition at line 407 of file mavlink_msg_hil_gps.h.

static uint8_t mavlink_msg_hil_gps_get_fix_type ( const mavlink_message_t *  msg)
inlinestatic

Get field fix_type from hil_gps message.

Returns
0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.

Definition at line 357 of file mavlink_msg_hil_gps.h.

static int32_t mavlink_msg_hil_gps_get_lat ( const mavlink_message_t *  msg)
inlinestatic

Get field lat from hil_gps message.

Returns
Latitude (WGS84), in degrees * 1E7

Definition at line 367 of file mavlink_msg_hil_gps.h.

static int32_t mavlink_msg_hil_gps_get_lon ( const mavlink_message_t *  msg)
inlinestatic

Get field lon from hil_gps message.

Returns
Longitude (WGS84), in degrees * 1E7

Definition at line 377 of file mavlink_msg_hil_gps.h.

static uint8_t mavlink_msg_hil_gps_get_satellites_visible ( const mavlink_message_t *  msg)
inlinestatic

Get field satellites_visible from hil_gps message.

Returns
Number of satellites visible. If unknown, set to 255

Definition at line 467 of file mavlink_msg_hil_gps.h.

static uint64_t mavlink_msg_hil_gps_get_time_usec ( const mavlink_message_t *  msg)
inlinestatic

Send a hil_gps message.

Parameters
chanMAVLink channel to send the message
time_usecTimestamp (microseconds since UNIX epoch or microseconds since system boot)
fix_type0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.
latLatitude (WGS84), in degrees * 1E7
lonLongitude (WGS84), in degrees * 1E7
altAltitude (AMSL, not WGS84), in meters * 1000 (positive for up)
ephGPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: 65535
epvGPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: 65535
velGPS ground speed (m/s * 100). If unknown, set to: 65535
vnGPS velocity in cm/s in NORTH direction in earth-fixed NED frame
veGPS velocity in cm/s in EAST direction in earth-fixed NED frame
vdGPS velocity in cm/s in DOWN direction in earth-fixed NED frame
cogCourse over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: 65535
satellites_visibleNumber of satellites visible. If unknown, set to 255 Get field time_usec from hil_gps message
Returns
Timestamp (microseconds since UNIX epoch or microseconds since system boot)

Definition at line 347 of file mavlink_msg_hil_gps.h.

static int16_t mavlink_msg_hil_gps_get_vd ( const mavlink_message_t *  msg)
inlinestatic

Get field vd from hil_gps message.

Returns
GPS velocity in cm/s in DOWN direction in earth-fixed NED frame

Definition at line 447 of file mavlink_msg_hil_gps.h.

static int16_t mavlink_msg_hil_gps_get_ve ( const mavlink_message_t *  msg)
inlinestatic

Get field ve from hil_gps message.

Returns
GPS velocity in cm/s in EAST direction in earth-fixed NED frame

Definition at line 437 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_get_vel ( const mavlink_message_t *  msg)
inlinestatic

Get field vel from hil_gps message.

Returns
GPS ground speed (m/s * 100). If unknown, set to: 65535

Definition at line 417 of file mavlink_msg_hil_gps.h.

static int16_t mavlink_msg_hil_gps_get_vn ( const mavlink_message_t *  msg)
inlinestatic

Get field vn from hil_gps message.

Returns
GPS velocity in cm/s in NORTH direction in earth-fixed NED frame

Definition at line 427 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint64_t  time_usec,
uint8_t  fix_type,
int32_t  lat,
int32_t  lon,
int32_t  alt,
uint16_t  eph,
uint16_t  epv,
uint16_t  vel,
int16_t  vn,
int16_t  ve,
int16_t  vd,
uint16_t  cog,
uint8_t  satellites_visible 
)
inlinestatic

Pack a hil_gps 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_usecTimestamp (microseconds since UNIX epoch or microseconds since system boot)
fix_type0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.
latLatitude (WGS84), in degrees * 1E7
lonLongitude (WGS84), in degrees * 1E7
altAltitude (AMSL, not WGS84), in meters * 1000 (positive for up)
ephGPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: 65535
epvGPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: 65535
velGPS ground speed (m/s * 100). If unknown, set to: 65535
vnGPS velocity in cm/s in NORTH direction in earth-fixed NED frame
veGPS velocity in cm/s in EAST direction in earth-fixed NED frame
vdGPS velocity in cm/s in DOWN direction in earth-fixed NED frame
cogCourse over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: 65535
satellites_visibleNumber of satellites visible. If unknown, set to 255
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 71 of file mavlink_msg_hil_gps.h.

static uint16_t mavlink_msg_hil_gps_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint64_t  time_usec,
uint8_t  fix_type,
int32_t  lat,
int32_t  lon,
int32_t  alt,
uint16_t  eph,
uint16_t  epv,
uint16_t  vel,
int16_t  vn,
int16_t  ve,
int16_t  vd,
uint16_t  cog,
uint8_t  satellites_visible 
)
inlinestatic

Pack a hil_gps 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_usecTimestamp (microseconds since UNIX epoch or microseconds since system boot)
fix_type0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it is at least two, so always correctly fill in the fix.
latLatitude (WGS84), in degrees * 1E7
lonLongitude (WGS84), in degrees * 1E7
altAltitude (AMSL, not WGS84), in meters * 1000 (positive for up)
ephGPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: 65535
epvGPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: 65535
velGPS ground speed (m/s * 100). If unknown, set to: 65535
vnGPS velocity in cm/s in NORTH direction in earth-fixed NED frame
veGPS velocity in cm/s in EAST direction in earth-fixed NED frame
vdGPS velocity in cm/s in DOWN direction in earth-fixed NED frame
cogCourse over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: 65535
satellites_visibleNumber of satellites visible. If unknown, set to 255
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 139 of file mavlink_msg_hil_gps.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:51