This commit is contained in:
PX4BuildBot
2024-06-12 23:13:29 +00:00
parent 5575efc01e
commit 8fbb24278b
57 changed files with 871 additions and 60 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_ASLUAV.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_ASLUAV_XML_HASH -6541772868705121009
#define MAVLINK_ASLUAV_XML_HASH -5766997723806825027
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -6541772868705121009
#define MAVLINK_PRIMARY_XML_HASH -5766997723806825027
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_AVSSUAS.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_AVSSUAS_XML_HASH -8776005207536586842
#define MAVLINK_AVSSUAS_XML_HASH -2516725104631682586
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -8776005207536586842
#define MAVLINK_PRIMARY_XML_HASH -2516725104631682586
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+4 -4
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -8067147397418507500
#define MAVLINK_PRIMARY_XML_HASH -1763014995884189226
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_ARDUPILOTMEGA.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_ARDUPILOTMEGA_XML_HASH -2335755698555088903
#define MAVLINK_ARDUPILOTMEGA_XML_HASH -6915166563461964623
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -2335755698555088903
#define MAVLINK_PRIMARY_XML_HASH -6915166563461964623
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_COMMON.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_COMMON_XML_HASH -2507115254594802816
#define MAVLINK_COMMON_XML_HASH 5119198154138803991
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -2507115254594802816
#define MAVLINK_PRIMARY_XML_HASH 5119198154138803991
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_CSAIRLINK.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_CSAIRLINK_XML_HASH -6616996978523373848
#define MAVLINK_CSAIRLINK_XML_HASH -6866162942311288013
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -6616996978523373848
#define MAVLINK_PRIMARY_XML_HASH -6866162942311288013
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 100
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_CUBEPILOT.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_CUBEPILOT_XML_HASH 4310364358544708291
#define MAVLINK_CUBEPILOT_XML_HASH 4714051393872210137
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 4310364358544708291
#define MAVLINK_PRIMARY_XML_HASH 4714051393872210137
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -2440820273398300605
#define MAVLINK_PRIMARY_XML_HASH 16574929695308179
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+568
View File
@@ -0,0 +1,568 @@
#pragma once
// MESSAGE GNSS_INTEGRITY PACKING
#define MAVLINK_MSG_ID_GNSS_INTEGRITY 441
typedef struct __mavlink_gnss_integrity_t {
uint32_t system_errors; /*< Errors in the GPS system.*/
uint16_t raim_hfom; /*< [cm] Horizontal expected accuracy using satellites successfully validated using RAIM.*/
uint16_t raim_vfom; /*< [cm] Vertical expected accuracy using satellites successfully validated using RAIM.*/
uint8_t id; /*< GNSS receiver id. Must match instance ids of other messages from same receiver.*/
uint8_t authentication_state; /*< Signal authentication state of the GPS system.*/
uint8_t jamming_state; /*< Signal jamming state of the GPS system.*/
uint8_t spoofing_state; /*< Signal spoofing state of the GPS system.*/
uint8_t raim_state; /*< The state of the RAIM processing.*/
uint8_t corrections_quality; /*< An abstract value representing the estimated quality of incoming corrections, or 255 if not available.*/
uint8_t system_status_summary; /*< An abstract value representing the overall status of the receiver, or 255 if not available.*/
uint8_t gnss_signal_quality; /*< An abstract value representing the quality of incoming GNSS signals, or 255 if not available.*/
uint8_t post_processing_quality; /*< An abstract value representing the estimated PPK quality, or 255 if not available.*/
} mavlink_gnss_integrity_t;
#define MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN 17
#define MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN 17
#define MAVLINK_MSG_ID_441_LEN 17
#define MAVLINK_MSG_ID_441_MIN_LEN 17
#define MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC 169
#define MAVLINK_MSG_ID_441_CRC 169
#if MAVLINK_COMMAND_24BIT
#define MAVLINK_MESSAGE_INFO_GNSS_INTEGRITY { \
441, \
"GNSS_INTEGRITY", \
12, \
{ { "id", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_gnss_integrity_t, id) }, \
{ "system_errors", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gnss_integrity_t, system_errors) }, \
{ "authentication_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_gnss_integrity_t, authentication_state) }, \
{ "jamming_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_gnss_integrity_t, jamming_state) }, \
{ "spoofing_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_gnss_integrity_t, spoofing_state) }, \
{ "raim_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_gnss_integrity_t, raim_state) }, \
{ "raim_hfom", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_gnss_integrity_t, raim_hfom) }, \
{ "raim_vfom", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_gnss_integrity_t, raim_vfom) }, \
{ "corrections_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 13, offsetof(mavlink_gnss_integrity_t, corrections_quality) }, \
{ "system_status_summary", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_gnss_integrity_t, system_status_summary) }, \
{ "gnss_signal_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 15, offsetof(mavlink_gnss_integrity_t, gnss_signal_quality) }, \
{ "post_processing_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_gnss_integrity_t, post_processing_quality) }, \
} \
}
#else
#define MAVLINK_MESSAGE_INFO_GNSS_INTEGRITY { \
"GNSS_INTEGRITY", \
12, \
{ { "id", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_gnss_integrity_t, id) }, \
{ "system_errors", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gnss_integrity_t, system_errors) }, \
{ "authentication_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 9, offsetof(mavlink_gnss_integrity_t, authentication_state) }, \
{ "jamming_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 10, offsetof(mavlink_gnss_integrity_t, jamming_state) }, \
{ "spoofing_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 11, offsetof(mavlink_gnss_integrity_t, spoofing_state) }, \
{ "raim_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 12, offsetof(mavlink_gnss_integrity_t, raim_state) }, \
{ "raim_hfom", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_gnss_integrity_t, raim_hfom) }, \
{ "raim_vfom", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_gnss_integrity_t, raim_vfom) }, \
{ "corrections_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 13, offsetof(mavlink_gnss_integrity_t, corrections_quality) }, \
{ "system_status_summary", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_gnss_integrity_t, system_status_summary) }, \
{ "gnss_signal_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 15, offsetof(mavlink_gnss_integrity_t, gnss_signal_quality) }, \
{ "post_processing_quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_gnss_integrity_t, post_processing_quality) }, \
} \
}
#endif
/**
* @brief Pack a gnss_integrity message
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
*
* @param id GNSS receiver id. Must match instance ids of other messages from same receiver.
* @param system_errors Errors in the GPS system.
* @param authentication_state Signal authentication state of the GPS system.
* @param jamming_state Signal jamming state of the GPS system.
* @param spoofing_state Signal spoofing state of the GPS system.
* @param raim_state The state of the RAIM processing.
* @param raim_hfom [cm] Horizontal expected accuracy using satellites successfully validated using RAIM.
* @param raim_vfom [cm] Vertical expected accuracy using satellites successfully validated using RAIM.
* @param corrections_quality An abstract value representing the estimated quality of incoming corrections, or 255 if not available.
* @param system_status_summary An abstract value representing the overall status of the receiver, or 255 if not available.
* @param gnss_signal_quality An abstract value representing the quality of incoming GNSS signals, or 255 if not available.
* @param post_processing_quality An abstract value representing the estimated PPK quality, or 255 if not available.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_gnss_integrity_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint8_t id, uint32_t system_errors, uint8_t authentication_state, uint8_t jamming_state, uint8_t spoofing_state, uint8_t raim_state, uint16_t raim_hfom, uint16_t raim_vfom, uint8_t corrections_quality, uint8_t system_status_summary, uint8_t gnss_signal_quality, uint8_t post_processing_quality)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN];
_mav_put_uint32_t(buf, 0, system_errors);
_mav_put_uint16_t(buf, 4, raim_hfom);
_mav_put_uint16_t(buf, 6, raim_vfom);
_mav_put_uint8_t(buf, 8, id);
_mav_put_uint8_t(buf, 9, authentication_state);
_mav_put_uint8_t(buf, 10, jamming_state);
_mav_put_uint8_t(buf, 11, spoofing_state);
_mav_put_uint8_t(buf, 12, raim_state);
_mav_put_uint8_t(buf, 13, corrections_quality);
_mav_put_uint8_t(buf, 14, system_status_summary);
_mav_put_uint8_t(buf, 15, gnss_signal_quality);
_mav_put_uint8_t(buf, 16, post_processing_quality);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#else
mavlink_gnss_integrity_t packet;
packet.system_errors = system_errors;
packet.raim_hfom = raim_hfom;
packet.raim_vfom = raim_vfom;
packet.id = id;
packet.authentication_state = authentication_state;
packet.jamming_state = jamming_state;
packet.spoofing_state = spoofing_state;
packet.raim_state = raim_state;
packet.corrections_quality = corrections_quality;
packet.system_status_summary = system_status_summary;
packet.gnss_signal_quality = gnss_signal_quality;
packet.post_processing_quality = post_processing_quality;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#endif
msg->msgid = MAVLINK_MSG_ID_GNSS_INTEGRITY;
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
}
/**
* @brief Pack a gnss_integrity message
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param status MAVLink status structure
* @param msg The MAVLink message to compress the data into
*
* @param id GNSS receiver id. Must match instance ids of other messages from same receiver.
* @param system_errors Errors in the GPS system.
* @param authentication_state Signal authentication state of the GPS system.
* @param jamming_state Signal jamming state of the GPS system.
* @param spoofing_state Signal spoofing state of the GPS system.
* @param raim_state The state of the RAIM processing.
* @param raim_hfom [cm] Horizontal expected accuracy using satellites successfully validated using RAIM.
* @param raim_vfom [cm] Vertical expected accuracy using satellites successfully validated using RAIM.
* @param corrections_quality An abstract value representing the estimated quality of incoming corrections, or 255 if not available.
* @param system_status_summary An abstract value representing the overall status of the receiver, or 255 if not available.
* @param gnss_signal_quality An abstract value representing the quality of incoming GNSS signals, or 255 if not available.
* @param post_processing_quality An abstract value representing the estimated PPK quality, or 255 if not available.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_gnss_integrity_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
uint8_t id, uint32_t system_errors, uint8_t authentication_state, uint8_t jamming_state, uint8_t spoofing_state, uint8_t raim_state, uint16_t raim_hfom, uint16_t raim_vfom, uint8_t corrections_quality, uint8_t system_status_summary, uint8_t gnss_signal_quality, uint8_t post_processing_quality)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN];
_mav_put_uint32_t(buf, 0, system_errors);
_mav_put_uint16_t(buf, 4, raim_hfom);
_mav_put_uint16_t(buf, 6, raim_vfom);
_mav_put_uint8_t(buf, 8, id);
_mav_put_uint8_t(buf, 9, authentication_state);
_mav_put_uint8_t(buf, 10, jamming_state);
_mav_put_uint8_t(buf, 11, spoofing_state);
_mav_put_uint8_t(buf, 12, raim_state);
_mav_put_uint8_t(buf, 13, corrections_quality);
_mav_put_uint8_t(buf, 14, system_status_summary);
_mav_put_uint8_t(buf, 15, gnss_signal_quality);
_mav_put_uint8_t(buf, 16, post_processing_quality);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#else
mavlink_gnss_integrity_t packet;
packet.system_errors = system_errors;
packet.raim_hfom = raim_hfom;
packet.raim_vfom = raim_vfom;
packet.id = id;
packet.authentication_state = authentication_state;
packet.jamming_state = jamming_state;
packet.spoofing_state = spoofing_state;
packet.raim_state = raim_state;
packet.corrections_quality = corrections_quality;
packet.system_status_summary = system_status_summary;
packet.gnss_signal_quality = gnss_signal_quality;
packet.post_processing_quality = post_processing_quality;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#endif
msg->msgid = MAVLINK_MSG_ID_GNSS_INTEGRITY;
#if MAVLINK_CRC_EXTRA
return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
#else
return mavlink_finalize_message_buffer(msg, system_id, component_id, _status, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#endif
}
/**
* @brief Pack a gnss_integrity message on a channel
* @param system_id ID of this system
* @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 id GNSS receiver id. Must match instance ids of other messages from same receiver.
* @param system_errors Errors in the GPS system.
* @param authentication_state Signal authentication state of the GPS system.
* @param jamming_state Signal jamming state of the GPS system.
* @param spoofing_state Signal spoofing state of the GPS system.
* @param raim_state The state of the RAIM processing.
* @param raim_hfom [cm] Horizontal expected accuracy using satellites successfully validated using RAIM.
* @param raim_vfom [cm] Vertical expected accuracy using satellites successfully validated using RAIM.
* @param corrections_quality An abstract value representing the estimated quality of incoming corrections, or 255 if not available.
* @param system_status_summary An abstract value representing the overall status of the receiver, or 255 if not available.
* @param gnss_signal_quality An abstract value representing the quality of incoming GNSS signals, or 255 if not available.
* @param post_processing_quality An abstract value representing the estimated PPK quality, or 255 if not available.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_gnss_integrity_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint8_t id,uint32_t system_errors,uint8_t authentication_state,uint8_t jamming_state,uint8_t spoofing_state,uint8_t raim_state,uint16_t raim_hfom,uint16_t raim_vfom,uint8_t corrections_quality,uint8_t system_status_summary,uint8_t gnss_signal_quality,uint8_t post_processing_quality)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN];
_mav_put_uint32_t(buf, 0, system_errors);
_mav_put_uint16_t(buf, 4, raim_hfom);
_mav_put_uint16_t(buf, 6, raim_vfom);
_mav_put_uint8_t(buf, 8, id);
_mav_put_uint8_t(buf, 9, authentication_state);
_mav_put_uint8_t(buf, 10, jamming_state);
_mav_put_uint8_t(buf, 11, spoofing_state);
_mav_put_uint8_t(buf, 12, raim_state);
_mav_put_uint8_t(buf, 13, corrections_quality);
_mav_put_uint8_t(buf, 14, system_status_summary);
_mav_put_uint8_t(buf, 15, gnss_signal_quality);
_mav_put_uint8_t(buf, 16, post_processing_quality);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#else
mavlink_gnss_integrity_t packet;
packet.system_errors = system_errors;
packet.raim_hfom = raim_hfom;
packet.raim_vfom = raim_vfom;
packet.id = id;
packet.authentication_state = authentication_state;
packet.jamming_state = jamming_state;
packet.spoofing_state = spoofing_state;
packet.raim_state = raim_state;
packet.corrections_quality = corrections_quality;
packet.system_status_summary = system_status_summary;
packet.gnss_signal_quality = gnss_signal_quality;
packet.post_processing_quality = post_processing_quality;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
#endif
msg->msgid = MAVLINK_MSG_ID_GNSS_INTEGRITY;
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
}
/**
* @brief Encode a gnss_integrity struct
*
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param msg The MAVLink message to compress the data into
* @param gnss_integrity C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_gnss_integrity_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_gnss_integrity_t* gnss_integrity)
{
return mavlink_msg_gnss_integrity_pack(system_id, component_id, msg, gnss_integrity->id, gnss_integrity->system_errors, gnss_integrity->authentication_state, gnss_integrity->jamming_state, gnss_integrity->spoofing_state, gnss_integrity->raim_state, gnss_integrity->raim_hfom, gnss_integrity->raim_vfom, gnss_integrity->corrections_quality, gnss_integrity->system_status_summary, gnss_integrity->gnss_signal_quality, gnss_integrity->post_processing_quality);
}
/**
* @brief Encode a gnss_integrity struct on a channel
*
* @param system_id ID of this system
* @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 gnss_integrity C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_gnss_integrity_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_gnss_integrity_t* gnss_integrity)
{
return mavlink_msg_gnss_integrity_pack_chan(system_id, component_id, chan, msg, gnss_integrity->id, gnss_integrity->system_errors, gnss_integrity->authentication_state, gnss_integrity->jamming_state, gnss_integrity->spoofing_state, gnss_integrity->raim_state, gnss_integrity->raim_hfom, gnss_integrity->raim_vfom, gnss_integrity->corrections_quality, gnss_integrity->system_status_summary, gnss_integrity->gnss_signal_quality, gnss_integrity->post_processing_quality);
}
/**
* @brief Encode a gnss_integrity struct with provided status structure
*
* @param system_id ID of this system
* @param component_id ID of this component (e.g. 200 for IMU)
* @param status MAVLink status structure
* @param msg The MAVLink message to compress the data into
* @param gnss_integrity C-struct to read the message contents from
*/
static inline uint16_t mavlink_msg_gnss_integrity_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg, const mavlink_gnss_integrity_t* gnss_integrity)
{
return mavlink_msg_gnss_integrity_pack_status(system_id, component_id, _status, msg, gnss_integrity->id, gnss_integrity->system_errors, gnss_integrity->authentication_state, gnss_integrity->jamming_state, gnss_integrity->spoofing_state, gnss_integrity->raim_state, gnss_integrity->raim_hfom, gnss_integrity->raim_vfom, gnss_integrity->corrections_quality, gnss_integrity->system_status_summary, gnss_integrity->gnss_signal_quality, gnss_integrity->post_processing_quality);
}
/**
* @brief Send a gnss_integrity message
* @param chan MAVLink channel to send the message
*
* @param id GNSS receiver id. Must match instance ids of other messages from same receiver.
* @param system_errors Errors in the GPS system.
* @param authentication_state Signal authentication state of the GPS system.
* @param jamming_state Signal jamming state of the GPS system.
* @param spoofing_state Signal spoofing state of the GPS system.
* @param raim_state The state of the RAIM processing.
* @param raim_hfom [cm] Horizontal expected accuracy using satellites successfully validated using RAIM.
* @param raim_vfom [cm] Vertical expected accuracy using satellites successfully validated using RAIM.
* @param corrections_quality An abstract value representing the estimated quality of incoming corrections, or 255 if not available.
* @param system_status_summary An abstract value representing the overall status of the receiver, or 255 if not available.
* @param gnss_signal_quality An abstract value representing the quality of incoming GNSS signals, or 255 if not available.
* @param post_processing_quality An abstract value representing the estimated PPK quality, or 255 if not available.
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static inline void mavlink_msg_gnss_integrity_send(mavlink_channel_t chan, uint8_t id, uint32_t system_errors, uint8_t authentication_state, uint8_t jamming_state, uint8_t spoofing_state, uint8_t raim_state, uint16_t raim_hfom, uint16_t raim_vfom, uint8_t corrections_quality, uint8_t system_status_summary, uint8_t gnss_signal_quality, uint8_t post_processing_quality)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN];
_mav_put_uint32_t(buf, 0, system_errors);
_mav_put_uint16_t(buf, 4, raim_hfom);
_mav_put_uint16_t(buf, 6, raim_vfom);
_mav_put_uint8_t(buf, 8, id);
_mav_put_uint8_t(buf, 9, authentication_state);
_mav_put_uint8_t(buf, 10, jamming_state);
_mav_put_uint8_t(buf, 11, spoofing_state);
_mav_put_uint8_t(buf, 12, raim_state);
_mav_put_uint8_t(buf, 13, corrections_quality);
_mav_put_uint8_t(buf, 14, system_status_summary);
_mav_put_uint8_t(buf, 15, gnss_signal_quality);
_mav_put_uint8_t(buf, 16, post_processing_quality);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GNSS_INTEGRITY, buf, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
#else
mavlink_gnss_integrity_t packet;
packet.system_errors = system_errors;
packet.raim_hfom = raim_hfom;
packet.raim_vfom = raim_vfom;
packet.id = id;
packet.authentication_state = authentication_state;
packet.jamming_state = jamming_state;
packet.spoofing_state = spoofing_state;
packet.raim_state = raim_state;
packet.corrections_quality = corrections_quality;
packet.system_status_summary = system_status_summary;
packet.gnss_signal_quality = gnss_signal_quality;
packet.post_processing_quality = post_processing_quality;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GNSS_INTEGRITY, (const char *)&packet, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
#endif
}
/**
* @brief Send a gnss_integrity message
* @param chan MAVLink channel to send the message
* @param struct The MAVLink struct to serialize
*/
static inline void mavlink_msg_gnss_integrity_send_struct(mavlink_channel_t chan, const mavlink_gnss_integrity_t* gnss_integrity)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
mavlink_msg_gnss_integrity_send(chan, gnss_integrity->id, gnss_integrity->system_errors, gnss_integrity->authentication_state, gnss_integrity->jamming_state, gnss_integrity->spoofing_state, gnss_integrity->raim_state, gnss_integrity->raim_hfom, gnss_integrity->raim_vfom, gnss_integrity->corrections_quality, gnss_integrity->system_status_summary, gnss_integrity->gnss_signal_quality, gnss_integrity->post_processing_quality);
#else
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GNSS_INTEGRITY, (const char *)gnss_integrity, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
#endif
}
#if MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN <= MAVLINK_MAX_PAYLOAD_LEN
/*
This variant of _send() can be used to save stack space by re-using
memory from the receive buffer. The caller provides a
mavlink_message_t which is the size of a full mavlink message. This
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_gnss_integrity_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t id, uint32_t system_errors, uint8_t authentication_state, uint8_t jamming_state, uint8_t spoofing_state, uint8_t raim_state, uint16_t raim_hfom, uint16_t raim_vfom, uint8_t corrections_quality, uint8_t system_status_summary, uint8_t gnss_signal_quality, uint8_t post_processing_quality)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char *buf = (char *)msgbuf;
_mav_put_uint32_t(buf, 0, system_errors);
_mav_put_uint16_t(buf, 4, raim_hfom);
_mav_put_uint16_t(buf, 6, raim_vfom);
_mav_put_uint8_t(buf, 8, id);
_mav_put_uint8_t(buf, 9, authentication_state);
_mav_put_uint8_t(buf, 10, jamming_state);
_mav_put_uint8_t(buf, 11, spoofing_state);
_mav_put_uint8_t(buf, 12, raim_state);
_mav_put_uint8_t(buf, 13, corrections_quality);
_mav_put_uint8_t(buf, 14, system_status_summary);
_mav_put_uint8_t(buf, 15, gnss_signal_quality);
_mav_put_uint8_t(buf, 16, post_processing_quality);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GNSS_INTEGRITY, buf, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
#else
mavlink_gnss_integrity_t *packet = (mavlink_gnss_integrity_t *)msgbuf;
packet->system_errors = system_errors;
packet->raim_hfom = raim_hfom;
packet->raim_vfom = raim_vfom;
packet->id = id;
packet->authentication_state = authentication_state;
packet->jamming_state = jamming_state;
packet->spoofing_state = spoofing_state;
packet->raim_state = raim_state;
packet->corrections_quality = corrections_quality;
packet->system_status_summary = system_status_summary;
packet->gnss_signal_quality = gnss_signal_quality;
packet->post_processing_quality = post_processing_quality;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GNSS_INTEGRITY, (const char *)packet, MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN, MAVLINK_MSG_ID_GNSS_INTEGRITY_CRC);
#endif
}
#endif
#endif
// MESSAGE GNSS_INTEGRITY UNPACKING
/**
* @brief Get field id from gnss_integrity message
*
* @return GNSS receiver id. Must match instance ids of other messages from same receiver.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_id(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 8);
}
/**
* @brief Get field system_errors from gnss_integrity message
*
* @return Errors in the GPS system.
*/
static inline uint32_t mavlink_msg_gnss_integrity_get_system_errors(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint32_t(msg, 0);
}
/**
* @brief Get field authentication_state from gnss_integrity message
*
* @return Signal authentication state of the GPS system.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_authentication_state(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 9);
}
/**
* @brief Get field jamming_state from gnss_integrity message
*
* @return Signal jamming state of the GPS system.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_jamming_state(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 10);
}
/**
* @brief Get field spoofing_state from gnss_integrity message
*
* @return Signal spoofing state of the GPS system.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_spoofing_state(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 11);
}
/**
* @brief Get field raim_state from gnss_integrity message
*
* @return The state of the RAIM processing.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_raim_state(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 12);
}
/**
* @brief Get field raim_hfom from gnss_integrity message
*
* @return [cm] Horizontal expected accuracy using satellites successfully validated using RAIM.
*/
static inline uint16_t mavlink_msg_gnss_integrity_get_raim_hfom(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 4);
}
/**
* @brief Get field raim_vfom from gnss_integrity message
*
* @return [cm] Vertical expected accuracy using satellites successfully validated using RAIM.
*/
static inline uint16_t mavlink_msg_gnss_integrity_get_raim_vfom(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 6);
}
/**
* @brief Get field corrections_quality from gnss_integrity message
*
* @return An abstract value representing the estimated quality of incoming corrections, or 255 if not available.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_corrections_quality(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 13);
}
/**
* @brief Get field system_status_summary from gnss_integrity message
*
* @return An abstract value representing the overall status of the receiver, or 255 if not available.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_system_status_summary(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 14);
}
/**
* @brief Get field gnss_signal_quality from gnss_integrity message
*
* @return An abstract value representing the quality of incoming GNSS signals, or 255 if not available.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_gnss_signal_quality(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 15);
}
/**
* @brief Get field post_processing_quality from gnss_integrity message
*
* @return An abstract value representing the estimated PPK quality, or 255 if not available.
*/
static inline uint8_t mavlink_msg_gnss_integrity_get_post_processing_quality(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 16);
}
/**
* @brief Decode a gnss_integrity message into a struct
*
* @param msg The message to decode
* @param gnss_integrity C-struct to decode the message contents into
*/
static inline void mavlink_msg_gnss_integrity_decode(const mavlink_message_t* msg, mavlink_gnss_integrity_t* gnss_integrity)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
gnss_integrity->system_errors = mavlink_msg_gnss_integrity_get_system_errors(msg);
gnss_integrity->raim_hfom = mavlink_msg_gnss_integrity_get_raim_hfom(msg);
gnss_integrity->raim_vfom = mavlink_msg_gnss_integrity_get_raim_vfom(msg);
gnss_integrity->id = mavlink_msg_gnss_integrity_get_id(msg);
gnss_integrity->authentication_state = mavlink_msg_gnss_integrity_get_authentication_state(msg);
gnss_integrity->jamming_state = mavlink_msg_gnss_integrity_get_jamming_state(msg);
gnss_integrity->spoofing_state = mavlink_msg_gnss_integrity_get_spoofing_state(msg);
gnss_integrity->raim_state = mavlink_msg_gnss_integrity_get_raim_state(msg);
gnss_integrity->corrections_quality = mavlink_msg_gnss_integrity_get_corrections_quality(msg);
gnss_integrity->system_status_summary = mavlink_msg_gnss_integrity_get_system_status_summary(msg);
gnss_integrity->gnss_signal_quality = mavlink_msg_gnss_integrity_get_gnss_signal_quality(msg);
gnss_integrity->post_processing_quality = mavlink_msg_gnss_integrity_get_post_processing_quality(msg);
#else
uint8_t len = msg->len < MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN? msg->len : MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN;
memset(gnss_integrity, 0, MAVLINK_MSG_ID_GNSS_INTEGRITY_LEN);
memcpy(gnss_integrity, _MAV_PAYLOAD(msg), len);
#endif
}
+71
View File
@@ -907,6 +907,76 @@ static void mavlink_test_available_modes_monitor(uint8_t system_id, uint8_t comp
#endif
}
static void mavlink_test_gnss_integrity(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_GNSS_INTEGRITY >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_gnss_integrity_t packet_in = {
963497464,17443,17547,29,96,163,230,41,108,175,242,53
};
mavlink_gnss_integrity_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.system_errors = packet_in.system_errors;
packet1.raim_hfom = packet_in.raim_hfom;
packet1.raim_vfom = packet_in.raim_vfom;
packet1.id = packet_in.id;
packet1.authentication_state = packet_in.authentication_state;
packet1.jamming_state = packet_in.jamming_state;
packet1.spoofing_state = packet_in.spoofing_state;
packet1.raim_state = packet_in.raim_state;
packet1.corrections_quality = packet_in.corrections_quality;
packet1.system_status_summary = packet_in.system_status_summary;
packet1.gnss_signal_quality = packet_in.gnss_signal_quality;
packet1.post_processing_quality = packet_in.post_processing_quality;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_GNSS_INTEGRITY_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_gnss_integrity_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_gnss_integrity_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_gnss_integrity_pack(system_id, component_id, &msg , packet1.id , packet1.system_errors , packet1.authentication_state , packet1.jamming_state , packet1.spoofing_state , packet1.raim_state , packet1.raim_hfom , packet1.raim_vfom , packet1.corrections_quality , packet1.system_status_summary , packet1.gnss_signal_quality , packet1.post_processing_quality );
mavlink_msg_gnss_integrity_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_gnss_integrity_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.id , packet1.system_errors , packet1.authentication_state , packet1.jamming_state , packet1.spoofing_state , packet1.raim_state , packet1.raim_hfom , packet1.raim_vfom , packet1.corrections_quality , packet1.system_status_summary , packet1.gnss_signal_quality , packet1.post_processing_quality );
mavlink_msg_gnss_integrity_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_to_send_buffer(buffer, &msg);
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
}
mavlink_msg_gnss_integrity_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_gnss_integrity_send(MAVLINK_COMM_1 , packet1.id , packet1.system_errors , packet1.authentication_state , packet1.jamming_state , packet1.spoofing_state , packet1.raim_state , packet1.raim_hfom , packet1.raim_vfom , packet1.corrections_quality , packet1.system_status_summary , packet1.gnss_signal_quality , packet1.post_processing_quality );
mavlink_msg_gnss_integrity_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
#ifdef MAVLINK_HAVE_GET_MESSAGE_INFO
MAVLINK_ASSERT(mavlink_get_message_info_by_name("GNSS_INTEGRITY") != NULL);
MAVLINK_ASSERT(mavlink_get_message_info_by_id(MAVLINK_MSG_ID_GNSS_INTEGRITY) != NULL);
#endif
}
static void mavlink_test_target_absolute(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
@@ -1063,6 +1133,7 @@ static void mavlink_test_development(uint8_t system_id, uint8_t component_id, ma
mavlink_test_available_modes(system_id, component_id, last_msg);
mavlink_test_current_mode(system_id, component_id, last_msg);
mavlink_test_available_modes_monitor(system_id, component_id, last_msg);
mavlink_test_gnss_integrity(system_id, component_id, last_msg);
mavlink_test_target_absolute(system_id, component_id, last_msg);
mavlink_test_target_relative(system_id, component_id, last_msg);
}
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_ICAROUS.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_ICAROUS_XML_HASH 7329501220291026514
#define MAVLINK_ICAROUS_XML_HASH 3124639432458745073
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 7329501220291026514
#define MAVLINK_PRIMARY_XML_HASH 3124639432458745073
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 46
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_MATRIXPILOT.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_MATRIXPILOT_XML_HASH -4993060956609340618
#define MAVLINK_MATRIXPILOT_XML_HASH 1589575194780100
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -4993060956609340618
#define MAVLINK_PRIMARY_XML_HASH 1589575194780100
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+102
View File
@@ -421,6 +421,93 @@
<description>A gas tank. Fuel levels are in kilo-Pascal (kPa), and flow rates are in milliliters per second (ml/s).</description>
</entry>
</enum>
<enum name="GPS_SYSTEM_ERROR_FLAGS" bitmask="true">
<description>Flags indicating errors in a GPS receiver.</description>
<entry value="1" name="GPS_SYSTEM_ERROR_INCOMING_CORRECTIONS">
<description>There are problems with incoming correction streams.</description>
</entry>
<entry value="2" name="GPS_SYSTEM_ERROR_CONFIGURATION">
<description>There are problems with the configuration.</description>
</entry>
<entry value="4" name="GPS_SYSTEM_ERROR_SOFTWARE">
<description>There are problems with the software on the GPS receiver.</description>
</entry>
<entry value="8" name="GPS_SYSTEM_ERROR_ANTENNA">
<description>There are problems with an antenna connected to the GPS receiver.</description>
</entry>
<entry value="16" name="GPS_SYSTEM_ERROR_EVENT_CONGESTION">
<description>There are problems handling all incoming events.</description>
</entry>
<entry value="32" name="GPS_SYSTEM_ERROR_CPU_OVERLOAD">
<description>The GPS receiver CPU is overloaded.</description>
</entry>
<entry value="64" name="GPS_SYSTEM_ERROR_OUTPUT_CONGESTION">
<description>The GPS receiver is experiencing output congestion.</description>
</entry>
</enum>
<enum name="GPS_AUTHENTICATION_STATE">
<description>Signal authentication state in a GPS receiver.</description>
<entry value="0" name="GPS_AUTHENTICATION_STATE_UNKNOWN">
<description>The GPS receiver does not provide GPS signal authentication info.</description>
</entry>
<entry value="1" name="GPS_AUTHENTICATION_STATE_INITIALIZING">
<description>The GPS receiver is initializing signal authentication.</description>
</entry>
<entry value="2" name="GPS_AUTHENTICATION_STATE_ERROR">
<description>The GPS receiver encountered an error while initializing signal authentication.</description>
</entry>
<entry value="3" name="GPS_AUTHENTICATION_STATE_OK">
<description>The GPS receiver has correctly authenticated all signals.</description>
</entry>
<entry value="4" name="GPS_AUTHENTICATION_STATE_DISABLED">
<description>GPS signal authentication is disabled on the receiver.</description>
</entry>
</enum>
<enum name="GPS_JAMMING_STATE">
<description>Signal jamming state in a GPS receiver.</description>
<entry value="0" name="GPS_JAMMING_STATE_UNKNOWN">
<description>The GPS receiver does not provide GPS signal jamming info.</description>
</entry>
<entry value="1" name="GPS_JAMMING_STATE_OK">
<description>The GPS receiver detected no signal jamming.</description>
</entry>
<entry value="2" name="GPS_JAMMING_STATE_MITIGATED">
<description>The GPS receiver detected and mitigated signal jamming.</description>
</entry>
<entry value="3" name="GPS_JAMMING_STATE_DETECTED">
<description>The GPS receiver detected signal jamming.</description>
</entry>
</enum>
<enum name="GPS_SPOOFING_STATE">
<description>Signal spoofing state in a GPS receiver.</description>
<entry value="0" name="GPS_SPOOFING_STATE_UNKNOWN">
<description>The GPS receiver does not provide GPS signal spoofing info.</description>
</entry>
<entry value="1" name="GPS_SPOOFING_STATE_OK">
<description>The GPS receiver detected no signal spoofing.</description>
</entry>
<entry value="2" name="GPS_SPOOFING_STATE_MITIGATED">
<description>The GPS receiver detected and mitigated signal spoofing.</description>
</entry>
<entry value="3" name="GPS_SPOOFING_STATE_DETECTED">
<description>The GPS receiver detected signal spoofing but still has a fix.</description>
</entry>
</enum>
<enum name="GPS_RAIM_STATE">
<description>State of RAIM processing.</description>
<entry value="0" name="GPS_RAIM_STATE_UNKNOWN">
<description>RAIM capability is unknown.</description>
</entry>
<entry value="1" name="GPS_RAIM_STATE_DISABLED">
<description>RAIM is disabled.</description>
</entry>
<entry value="2" name="GPS_RAIM_STATE_OK">
<description>RAIM integrity check was successful.</description>
</entry>
<entry value="3" name="GPS_RAIM_STATE_FAILED">
<description>RAIM integrity check failed.</description>
</entry>
</enum>
</enums>
<messages>
<!-- Transactions for parameter protocol -->
@@ -594,6 +681,21 @@
</description>
<field type="uint8_t" name="seq">Sequence number. The value iterates sequentially whenever AVAILABLE_MODES changes (e.g. support for a new mode is added/removed dynamically).</field>
</message>
<message id="441" name="GNSS_INTEGRITY">
<description>Information about key components of GNSS receivers, like signal authentication, interference and system errors.</description>
<field type="uint8_t" name="id" instance="true">GNSS receiver id. Must match instance ids of other messages from same receiver.</field>
<field type="uint32_t" name="system_errors" enum="GPS_SYSTEM_ERROR_FLAGS" display="bitmask">Errors in the GPS system.</field>
<field type="uint8_t" name="authentication_state" enum="GPS_AUTHENTICATION_STATE">Signal authentication state of the GPS system.</field>
<field type="uint8_t" name="jamming_state" enum="GPS_JAMMING_STATE">Signal jamming state of the GPS system.</field>
<field type="uint8_t" name="spoofing_state" enum="GPS_SPOOFING_STATE">Signal spoofing state of the GPS system.</field>
<field type="uint8_t" name="raim_state" enum="GPS_RAIM_STATE">The state of the RAIM processing.</field>
<field type="uint16_t" name="raim_hfom" units="cm" invalid="UINT16_MAX">Horizontal expected accuracy using satellites successfully validated using RAIM.</field>
<field type="uint16_t" name="raim_vfom" units="cm" invalid="UINT16_MAX">Vertical expected accuracy using satellites successfully validated using RAIM.</field>
<field type="uint8_t" name="corrections_quality" minValue="0" maxValue="10" invalid="UINT8_MAX">An abstract value representing the estimated quality of incoming corrections, or 255 if not available.</field>
<field type="uint8_t" name="system_status_summary" minValue="0" maxValue="10" invalid="UINT8_MAX">An abstract value representing the overall status of the receiver, or 255 if not available.</field>
<field type="uint8_t" name="gnss_signal_quality" minValue="0" maxValue="10" invalid="UINT8_MAX">An abstract value representing the quality of incoming GNSS signals, or 255 if not available.</field>
<field type="uint8_t" name="post_processing_quality" minValue="0" maxValue="10" invalid="UINT8_MAX">An abstract value representing the estimated PPK quality, or 255 if not available.</field>
</message>
<!-- Target info from a sensor on the target -->
<message id="510" name="TARGET_ABSOLUTE">
<description>Current motion information from sensors on a target</description>
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -4486119638139692020
#define MAVLINK_PRIMARY_XML_HASH 7662106544527486211
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_MINIMAL.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_MINIMAL_XML_HASH -4486119638139692020
#define MAVLINK_MINIMAL_XML_HASH 7662106544527486211
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 2278515315515041144
#define MAVLINK_PRIMARY_XML_HASH -9091465355061367344
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_PAPARAZZI.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_PAPARAZZI_XML_HASH 2278515315515041144
#define MAVLINK_PAPARAZZI_XML_HASH -9091465355061367344
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 3180917487204977957
#define MAVLINK_PRIMARY_XML_HASH -4633325857332973603
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_PYTHON_ARRAY_TEST.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_PYTHON_ARRAY_TEST_XML_HASH 3180917487204977957
#define MAVLINK_PYTHON_ARRAY_TEST_XML_HASH -4633325857332973603
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 4035577038607407754
#define MAVLINK_PRIMARY_XML_HASH -2559000104130651230
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_STANDARD.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_STANDARD_XML_HASH 4035577038607407754
#define MAVLINK_STANDARD_XML_HASH -2559000104130651230
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 6698136048858395700
#define MAVLINK_PRIMARY_XML_HASH -8590959997954811712
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_STORM32.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_STORM32_XML_HASH 6698136048858395700
#define MAVLINK_STORM32_XML_HASH -8590959997954811712
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH 8121161143040758619
#define MAVLINK_PRIMARY_XML_HASH 6986492919400575719
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_TEST.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_TEST_XML_HASH 8121161143040758619
#define MAVLINK_TEST_XML_HASH 6986492919400575719
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -2319508950988403584
#define MAVLINK_PRIMARY_XML_HASH -2903642148274315835
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_UAVIONIX.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_UAVIONIX_XML_HASH -2319508950988403584
#define MAVLINK_UAVIONIX_XML_HASH -2903642148274315835
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef MAVLINK_H
#define MAVLINK_H
#define MAVLINK_PRIMARY_XML_HASH -5024866509969937175
#define MAVLINK_PRIMARY_XML_HASH 8161511290660265822
#ifndef MAVLINK_STX
#define MAVLINK_STX 253
+1 -1
View File
@@ -10,7 +10,7 @@
#error Wrong include order: MAVLINK_UALBERTA.H MUST NOT BE DIRECTLY USED. Include mavlink.h from the same directory instead or set ALL AND EVERY defines from MAVLINK.H manually accordingly, including the #define MAVLINK_H call.
#endif
#define MAVLINK_UALBERTA_XML_HASH -5024866509969937175
#define MAVLINK_UALBERTA_XML_HASH 8161511290660265822
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Thu Jun 06 2024"
#define MAVLINK_BUILD_DATE "Wed Jun 12 2024"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255