update protocol
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_vfr_hud_t {
|
||||
float airspeed; /*< [m/s] Current airspeed in m/s*/
|
||||
float groundspeed; /*< [m/s] Current ground speed in m/s*/
|
||||
float alt; /*< [m] Current altitude (MSL), in meters*/
|
||||
float climb; /*< [m/s] Current climb rate in meters/second*/
|
||||
float airspeed; /*< [m/s] Current airspeed*/
|
||||
float groundspeed; /*< [m/s] Current ground speed*/
|
||||
float alt; /*< [m] Current altitude (MSL)*/
|
||||
float climb; /*< [m/s] Current climb rate*/
|
||||
int16_t heading; /*< [deg] Current heading in degrees, in compass units (0..360, 0=north)*/
|
||||
uint16_t throttle; /*< [%] Current throttle setting in integer percent, 0 to 100*/
|
||||
}) mavlink_vfr_hud_t;
|
||||
@@ -56,12 +56,12 @@ typedef struct __mavlink_vfr_hud_t {
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param airspeed [m/s] Current airspeed in m/s
|
||||
* @param groundspeed [m/s] Current ground speed in m/s
|
||||
* @param airspeed [m/s] Current airspeed
|
||||
* @param groundspeed [m/s] Current ground speed
|
||||
* @param heading [deg] Current heading in degrees, in compass units (0..360, 0=north)
|
||||
* @param throttle [%] Current throttle setting in integer percent, 0 to 100
|
||||
* @param alt [m] Current altitude (MSL), in meters
|
||||
* @param climb [m/s] Current climb rate in meters/second
|
||||
* @param alt [m] Current altitude (MSL)
|
||||
* @param climb [m/s] Current climb rate
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_vfr_hud_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
@@ -99,12 +99,12 @@ static inline uint16_t mavlink_msg_vfr_hud_pack(uint8_t system_id, uint8_t compo
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param airspeed [m/s] Current airspeed in m/s
|
||||
* @param groundspeed [m/s] Current ground speed in m/s
|
||||
* @param airspeed [m/s] Current airspeed
|
||||
* @param groundspeed [m/s] Current ground speed
|
||||
* @param heading [deg] Current heading in degrees, in compass units (0..360, 0=north)
|
||||
* @param throttle [%] Current throttle setting in integer percent, 0 to 100
|
||||
* @param alt [m] Current altitude (MSL), in meters
|
||||
* @param climb [m/s] Current climb rate in meters/second
|
||||
* @param alt [m] Current altitude (MSL)
|
||||
* @param climb [m/s] Current climb rate
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_vfr_hud_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
@@ -168,12 +168,12 @@ static inline uint16_t mavlink_msg_vfr_hud_encode_chan(uint8_t system_id, uint8_
|
||||
* @brief Send a vfr_hud message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param airspeed [m/s] Current airspeed in m/s
|
||||
* @param groundspeed [m/s] Current ground speed in m/s
|
||||
* @param airspeed [m/s] Current airspeed
|
||||
* @param groundspeed [m/s] Current ground speed
|
||||
* @param heading [deg] Current heading in degrees, in compass units (0..360, 0=north)
|
||||
* @param throttle [%] Current throttle setting in integer percent, 0 to 100
|
||||
* @param alt [m] Current altitude (MSL), in meters
|
||||
* @param climb [m/s] Current climb rate in meters/second
|
||||
* @param alt [m] Current altitude (MSL)
|
||||
* @param climb [m/s] Current climb rate
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
@@ -258,7 +258,7 @@ static inline void mavlink_msg_vfr_hud_send_buf(mavlink_message_t *msgbuf, mavli
|
||||
/**
|
||||
* @brief Get field airspeed from vfr_hud message
|
||||
*
|
||||
* @return [m/s] Current airspeed in m/s
|
||||
* @return [m/s] Current airspeed
|
||||
*/
|
||||
static inline float mavlink_msg_vfr_hud_get_airspeed(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -268,7 +268,7 @@ static inline float mavlink_msg_vfr_hud_get_airspeed(const mavlink_message_t* ms
|
||||
/**
|
||||
* @brief Get field groundspeed from vfr_hud message
|
||||
*
|
||||
* @return [m/s] Current ground speed in m/s
|
||||
* @return [m/s] Current ground speed
|
||||
*/
|
||||
static inline float mavlink_msg_vfr_hud_get_groundspeed(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -298,7 +298,7 @@ static inline uint16_t mavlink_msg_vfr_hud_get_throttle(const mavlink_message_t*
|
||||
/**
|
||||
* @brief Get field alt from vfr_hud message
|
||||
*
|
||||
* @return [m] Current altitude (MSL), in meters
|
||||
* @return [m] Current altitude (MSL)
|
||||
*/
|
||||
static inline float mavlink_msg_vfr_hud_get_alt(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -308,7 +308,7 @@ static inline float mavlink_msg_vfr_hud_get_alt(const mavlink_message_t* msg)
|
||||
/**
|
||||
* @brief Get field climb from vfr_hud message
|
||||
*
|
||||
* @return [m/s] Current climb rate in meters/second
|
||||
* @return [m/s] Current climb rate
|
||||
*/
|
||||
static inline float mavlink_msg_vfr_hud_get_climb(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user