mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:01:37 +08:00
Mission topic: get rid of magic params
This commit is contained in:
@@ -35,8 +35,8 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file mission_item.h
|
* @file mission.h
|
||||||
* Definition of one mission item.
|
* Definition of a mission consisting of mission items.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TOPIC_MISSION_H_
|
#ifndef TOPIC_MISSION_H_
|
||||||
@@ -77,10 +77,8 @@ struct mission_item_s
|
|||||||
float loiter_radius; /**< loiter radius in meters, 0 for a VTOL to hover */
|
float loiter_radius; /**< loiter radius in meters, 0 for a VTOL to hover */
|
||||||
uint8_t loiter_direction; /**< 1: positive / clockwise, -1, negative. */
|
uint8_t loiter_direction; /**< 1: positive / clockwise, -1, negative. */
|
||||||
enum NAV_CMD nav_cmd; /**< true if loitering is enabled */
|
enum NAV_CMD nav_cmd; /**< true if loitering is enabled */
|
||||||
float param1;
|
float radius; /**< radius in which the mission is accepted as reached in meters */
|
||||||
float param2;
|
float time_inside; /**< time that the MAV should stay inside the radius before advancing in milliseconds */
|
||||||
float param3;
|
|
||||||
float param4;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mission_s
|
struct mission_s
|
||||||
|
|||||||
Reference in New Issue
Block a user