update protocol
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_obstacle_distance_t {
|
||||
uint64_t time_usec; /*< [us] Timestamp (microseconds since system boot or since UNIX epoch).*/
|
||||
uint64_t time_usec; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.*/
|
||||
uint16_t distances[72]; /*< [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.*/
|
||||
uint16_t min_distance; /*< [cm] Minimum distance the sensor can measure in centimeters.*/
|
||||
uint16_t max_distance; /*< [cm] Maximum distance the sensor can measure in centimeters.*/
|
||||
uint16_t min_distance; /*< [cm] Minimum distance the sensor can measure.*/
|
||||
uint16_t max_distance; /*< [cm] Maximum distance the sensor can measure.*/
|
||||
uint8_t sensor_type; /*< Class id of the distance sensor type.*/
|
||||
uint8_t increment; /*< [deg] Angular width in degrees of each array element.*/
|
||||
}) mavlink_obstacle_distance_t;
|
||||
@@ -56,12 +56,12 @@ typedef struct __mavlink_obstacle_distance_t {
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param time_usec [us] Timestamp (microseconds since system boot or since UNIX epoch).
|
||||
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
* @param sensor_type Class id of the distance sensor type.
|
||||
* @param distances [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
|
||||
* @param increment [deg] Angular width in degrees of each array element.
|
||||
* @param min_distance [cm] Minimum distance the sensor can measure in centimeters.
|
||||
* @param max_distance [cm] Maximum distance the sensor can measure in centimeters.
|
||||
* @param min_distance [cm] Minimum distance the sensor can measure.
|
||||
* @param max_distance [cm] Maximum distance the sensor can measure.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_obstacle_distance_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
@@ -97,12 +97,12 @@ static inline uint16_t mavlink_msg_obstacle_distance_pack(uint8_t system_id, uin
|
||||
* @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 time_usec [us] Timestamp (microseconds since system boot or since UNIX epoch).
|
||||
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
* @param sensor_type Class id of the distance sensor type.
|
||||
* @param distances [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
|
||||
* @param increment [deg] Angular width in degrees of each array element.
|
||||
* @param min_distance [cm] Minimum distance the sensor can measure in centimeters.
|
||||
* @param max_distance [cm] Maximum distance the sensor can measure in centimeters.
|
||||
* @param min_distance [cm] Minimum distance the sensor can measure.
|
||||
* @param max_distance [cm] Maximum distance the sensor can measure.
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_obstacle_distance_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
@@ -164,12 +164,12 @@ static inline uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t system_
|
||||
* @brief Send a obstacle_distance message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param time_usec [us] Timestamp (microseconds since system boot or since UNIX epoch).
|
||||
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
* @param sensor_type Class id of the distance sensor type.
|
||||
* @param distances [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
|
||||
* @param increment [deg] Angular width in degrees of each array element.
|
||||
* @param min_distance [cm] Minimum distance the sensor can measure in centimeters.
|
||||
* @param max_distance [cm] Maximum distance the sensor can measure in centimeters.
|
||||
* @param min_distance [cm] Minimum distance the sensor can measure.
|
||||
* @param max_distance [cm] Maximum distance the sensor can measure.
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
@@ -250,7 +250,7 @@ static inline void mavlink_msg_obstacle_distance_send_buf(mavlink_message_t *msg
|
||||
/**
|
||||
* @brief Get field time_usec from obstacle_distance message
|
||||
*
|
||||
* @return [us] Timestamp (microseconds since system boot or since UNIX epoch).
|
||||
* @return [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
*/
|
||||
static inline uint64_t mavlink_msg_obstacle_distance_get_time_usec(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -290,7 +290,7 @@ static inline uint8_t mavlink_msg_obstacle_distance_get_increment(const mavlink_
|
||||
/**
|
||||
* @brief Get field min_distance from obstacle_distance message
|
||||
*
|
||||
* @return [cm] Minimum distance the sensor can measure in centimeters.
|
||||
* @return [cm] Minimum distance the sensor can measure.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_obstacle_distance_get_min_distance(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -300,7 +300,7 @@ static inline uint16_t mavlink_msg_obstacle_distance_get_min_distance(const mavl
|
||||
/**
|
||||
* @brief Get field max_distance from obstacle_distance message
|
||||
*
|
||||
* @return [cm] Maximum distance the sensor can measure in centimeters.
|
||||
* @return [cm] Maximum distance the sensor can measure.
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_obstacle_distance_get_max_distance(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user