autogenerated headers for rev https://github.com/mavlink/mavlink/tree/6a53d5f5fd35e7eb7e261c54a0db3154a63f167c
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
typedef struct __mavlink_adsb_vehicle_t
|
||||
{
|
||||
uint32_t ICAO_address; /*< ICAO address*/
|
||||
float lat; /*< The reported latitude in degrees*/
|
||||
float lon; /*< The reported longitude in degrees*/
|
||||
int32_t lat; /*< Latitude, expressed as degrees * 1E7*/
|
||||
int32_t lon; /*< Longitude, expressed as degrees * 1E7*/
|
||||
float altitude; /*< Altitude(ASL) in meters*/
|
||||
float hor_velocity; /*< The horizontal velocity in meters/second*/
|
||||
float ver_velocity; /*< The vertical velocity in meters/second, positive is up*/
|
||||
uint16_t heading; /*< Course over ground in degrees * 10^2*/
|
||||
uint16_t heading; /*< Course over ground in centidegrees*/
|
||||
uint16_t flags; /*< Flags to indicate various statuses including valid data fields*/
|
||||
uint8_t altitude_type; /*< Type from ADSB_ALTITUDE_TYPE enum.*/
|
||||
char callsign[9]; /*< The callsign(squawk)*/
|
||||
uint8_t altitude_type; /*< Type from ADSB_ALTITUDE_TYPE enum*/
|
||||
char callsign[9]; /*< The callsign, 8+null*/
|
||||
uint8_t emitter_type; /*< Type from ADSB_EMITTER_TYPE enum*/
|
||||
uint8_t tslc; /*< Time since last communication in seconds*/
|
||||
} mavlink_adsb_vehicle_t;
|
||||
@@ -21,8 +21,8 @@ typedef struct __mavlink_adsb_vehicle_t
|
||||
#define MAVLINK_MSG_ID_ADSB_VEHICLE_LEN 40
|
||||
#define MAVLINK_MSG_ID_246_LEN 40
|
||||
|
||||
#define MAVLINK_MSG_ID_ADSB_VEHICLE_CRC 81
|
||||
#define MAVLINK_MSG_ID_246_CRC 81
|
||||
#define MAVLINK_MSG_ID_ADSB_VEHICLE_CRC 223
|
||||
#define MAVLINK_MSG_ID_246_CRC 223
|
||||
|
||||
#define MAVLINK_MSG_ADSB_VEHICLE_FIELD_CALLSIGN_LEN 9
|
||||
|
||||
@@ -30,8 +30,8 @@ typedef struct __mavlink_adsb_vehicle_t
|
||||
"ADSB_VEHICLE", \
|
||||
12, \
|
||||
{ { "ICAO_address", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_adsb_vehicle_t, ICAO_address) }, \
|
||||
{ "lat", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_adsb_vehicle_t, lat) }, \
|
||||
{ "lon", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_adsb_vehicle_t, lon) }, \
|
||||
{ "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_adsb_vehicle_t, lat) }, \
|
||||
{ "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_adsb_vehicle_t, lon) }, \
|
||||
{ "altitude", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_adsb_vehicle_t, altitude) }, \
|
||||
{ "hor_velocity", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_adsb_vehicle_t, hor_velocity) }, \
|
||||
{ "ver_velocity", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_adsb_vehicle_t, ver_velocity) }, \
|
||||
@@ -52,27 +52,27 @@ typedef struct __mavlink_adsb_vehicle_t
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param ICAO_address ICAO address
|
||||
* @param lat The reported latitude in degrees
|
||||
* @param lon The reported longitude in degrees
|
||||
* @param altitude_type Type from ADSB_ALTITUDE_TYPE enum.
|
||||
* @param lat Latitude, expressed as degrees * 1E7
|
||||
* @param lon Longitude, expressed as degrees * 1E7
|
||||
* @param altitude_type Type from ADSB_ALTITUDE_TYPE enum
|
||||
* @param altitude Altitude(ASL) in meters
|
||||
* @param heading Course over ground in degrees * 10^2
|
||||
* @param heading Course over ground in centidegrees
|
||||
* @param hor_velocity The horizontal velocity in meters/second
|
||||
* @param ver_velocity The vertical velocity in meters/second, positive is up
|
||||
* @param callsign The callsign(squawk)
|
||||
* @param callsign The callsign, 8+null
|
||||
* @param emitter_type Type from ADSB_EMITTER_TYPE enum
|
||||
* @param tslc Time since last communication in seconds
|
||||
* @param flags Flags to indicate various statuses including valid data fields
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_adsb_vehicle_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint32_t ICAO_address, float lat, float lon, uint8_t altitude_type, float altitude, uint16_t heading, float hor_velocity, float ver_velocity, const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags)
|
||||
uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, float altitude, uint16_t heading, float hor_velocity, float ver_velocity, const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_ADSB_VEHICLE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, ICAO_address);
|
||||
_mav_put_float(buf, 4, lat);
|
||||
_mav_put_float(buf, 8, lon);
|
||||
_mav_put_int32_t(buf, 4, lat);
|
||||
_mav_put_int32_t(buf, 8, lon);
|
||||
_mav_put_float(buf, 12, altitude);
|
||||
_mav_put_float(buf, 16, hor_velocity);
|
||||
_mav_put_float(buf, 20, ver_velocity);
|
||||
@@ -115,14 +115,14 @@ static inline uint16_t mavlink_msg_adsb_vehicle_pack(uint8_t system_id, uint8_t
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param ICAO_address ICAO address
|
||||
* @param lat The reported latitude in degrees
|
||||
* @param lon The reported longitude in degrees
|
||||
* @param altitude_type Type from ADSB_ALTITUDE_TYPE enum.
|
||||
* @param lat Latitude, expressed as degrees * 1E7
|
||||
* @param lon Longitude, expressed as degrees * 1E7
|
||||
* @param altitude_type Type from ADSB_ALTITUDE_TYPE enum
|
||||
* @param altitude Altitude(ASL) in meters
|
||||
* @param heading Course over ground in degrees * 10^2
|
||||
* @param heading Course over ground in centidegrees
|
||||
* @param hor_velocity The horizontal velocity in meters/second
|
||||
* @param ver_velocity The vertical velocity in meters/second, positive is up
|
||||
* @param callsign The callsign(squawk)
|
||||
* @param callsign The callsign, 8+null
|
||||
* @param emitter_type Type from ADSB_EMITTER_TYPE enum
|
||||
* @param tslc Time since last communication in seconds
|
||||
* @param flags Flags to indicate various statuses including valid data fields
|
||||
@@ -130,13 +130,13 @@ static inline uint16_t mavlink_msg_adsb_vehicle_pack(uint8_t system_id, uint8_t
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_adsb_vehicle_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint32_t ICAO_address,float lat,float lon,uint8_t altitude_type,float altitude,uint16_t heading,float hor_velocity,float ver_velocity,const char *callsign,uint8_t emitter_type,uint8_t tslc,uint16_t flags)
|
||||
uint32_t ICAO_address,int32_t lat,int32_t lon,uint8_t altitude_type,float altitude,uint16_t heading,float hor_velocity,float ver_velocity,const char *callsign,uint8_t emitter_type,uint8_t tslc,uint16_t flags)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_ADSB_VEHICLE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, ICAO_address);
|
||||
_mav_put_float(buf, 4, lat);
|
||||
_mav_put_float(buf, 8, lon);
|
||||
_mav_put_int32_t(buf, 4, lat);
|
||||
_mav_put_int32_t(buf, 8, lon);
|
||||
_mav_put_float(buf, 12, altitude);
|
||||
_mav_put_float(buf, 16, hor_velocity);
|
||||
_mav_put_float(buf, 20, ver_velocity);
|
||||
@@ -204,27 +204,27 @@ static inline uint16_t mavlink_msg_adsb_vehicle_encode_chan(uint8_t system_id, u
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param ICAO_address ICAO address
|
||||
* @param lat The reported latitude in degrees
|
||||
* @param lon The reported longitude in degrees
|
||||
* @param altitude_type Type from ADSB_ALTITUDE_TYPE enum.
|
||||
* @param lat Latitude, expressed as degrees * 1E7
|
||||
* @param lon Longitude, expressed as degrees * 1E7
|
||||
* @param altitude_type Type from ADSB_ALTITUDE_TYPE enum
|
||||
* @param altitude Altitude(ASL) in meters
|
||||
* @param heading Course over ground in degrees * 10^2
|
||||
* @param heading Course over ground in centidegrees
|
||||
* @param hor_velocity The horizontal velocity in meters/second
|
||||
* @param ver_velocity The vertical velocity in meters/second, positive is up
|
||||
* @param callsign The callsign(squawk)
|
||||
* @param callsign The callsign, 8+null
|
||||
* @param emitter_type Type from ADSB_EMITTER_TYPE enum
|
||||
* @param tslc Time since last communication in seconds
|
||||
* @param flags Flags to indicate various statuses including valid data fields
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_adsb_vehicle_send(mavlink_channel_t chan, uint32_t ICAO_address, float lat, float lon, uint8_t altitude_type, float altitude, uint16_t heading, float hor_velocity, float ver_velocity, const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags)
|
||||
static inline void mavlink_msg_adsb_vehicle_send(mavlink_channel_t chan, uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, float altitude, uint16_t heading, float hor_velocity, float ver_velocity, const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_ADSB_VEHICLE_LEN];
|
||||
_mav_put_uint32_t(buf, 0, ICAO_address);
|
||||
_mav_put_float(buf, 4, lat);
|
||||
_mav_put_float(buf, 8, lon);
|
||||
_mav_put_int32_t(buf, 4, lat);
|
||||
_mav_put_int32_t(buf, 8, lon);
|
||||
_mav_put_float(buf, 12, altitude);
|
||||
_mav_put_float(buf, 16, hor_velocity);
|
||||
_mav_put_float(buf, 20, ver_velocity);
|
||||
@@ -269,13 +269,13 @@ static inline void mavlink_msg_adsb_vehicle_send(mavlink_channel_t chan, uint32_
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_adsb_vehicle_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t ICAO_address, float lat, float lon, uint8_t altitude_type, float altitude, uint16_t heading, float hor_velocity, float ver_velocity, const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags)
|
||||
static inline void mavlink_msg_adsb_vehicle_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t ICAO_address, int32_t lat, int32_t lon, uint8_t altitude_type, float altitude, uint16_t heading, float hor_velocity, float ver_velocity, const char *callsign, uint8_t emitter_type, uint8_t tslc, uint16_t flags)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint32_t(buf, 0, ICAO_address);
|
||||
_mav_put_float(buf, 4, lat);
|
||||
_mav_put_float(buf, 8, lon);
|
||||
_mav_put_int32_t(buf, 4, lat);
|
||||
_mav_put_int32_t(buf, 8, lon);
|
||||
_mav_put_float(buf, 12, altitude);
|
||||
_mav_put_float(buf, 16, hor_velocity);
|
||||
_mav_put_float(buf, 20, ver_velocity);
|
||||
@@ -331,27 +331,27 @@ static inline uint32_t mavlink_msg_adsb_vehicle_get_ICAO_address(const mavlink_m
|
||||
/**
|
||||
* @brief Get field lat from adsb_vehicle message
|
||||
*
|
||||
* @return The reported latitude in degrees
|
||||
* @return Latitude, expressed as degrees * 1E7
|
||||
*/
|
||||
static inline float mavlink_msg_adsb_vehicle_get_lat(const mavlink_message_t* msg)
|
||||
static inline int32_t mavlink_msg_adsb_vehicle_get_lat(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 4);
|
||||
return _MAV_RETURN_int32_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field lon from adsb_vehicle message
|
||||
*
|
||||
* @return The reported longitude in degrees
|
||||
* @return Longitude, expressed as degrees * 1E7
|
||||
*/
|
||||
static inline float mavlink_msg_adsb_vehicle_get_lon(const mavlink_message_t* msg)
|
||||
static inline int32_t mavlink_msg_adsb_vehicle_get_lon(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_float(msg, 8);
|
||||
return _MAV_RETURN_int32_t(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field altitude_type from adsb_vehicle message
|
||||
*
|
||||
* @return Type from ADSB_ALTITUDE_TYPE enum.
|
||||
* @return Type from ADSB_ALTITUDE_TYPE enum
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_adsb_vehicle_get_altitude_type(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -371,7 +371,7 @@ static inline float mavlink_msg_adsb_vehicle_get_altitude(const mavlink_message_
|
||||
/**
|
||||
* @brief Get field heading from adsb_vehicle message
|
||||
*
|
||||
* @return Course over ground in degrees * 10^2
|
||||
* @return Course over ground in centidegrees
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_adsb_vehicle_get_heading(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -401,7 +401,7 @@ static inline float mavlink_msg_adsb_vehicle_get_ver_velocity(const mavlink_mess
|
||||
/**
|
||||
* @brief Get field callsign from adsb_vehicle message
|
||||
*
|
||||
* @return The callsign(squawk)
|
||||
* @return The callsign, 8+null
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_adsb_vehicle_get_callsign(const mavlink_message_t* msg, char *callsign)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user