mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 04:11:36 +08:00
FlightTaskAuto set WaypointType from position setpoint types
This commit is contained in:
@@ -53,14 +53,14 @@
|
|||||||
* of the size
|
* of the size
|
||||||
*/
|
*/
|
||||||
enum class WaypointType : int {
|
enum class WaypointType : int {
|
||||||
position = 0,
|
position = position_setpoint_s::SETPOINT_TYPE_POSITION,
|
||||||
velocity,
|
velocity = position_setpoint_s::SETPOINT_TYPE_VELOCITY,
|
||||||
loiter,
|
loiter = position_setpoint_s::SETPOINT_TYPE_LOITER,
|
||||||
takeoff,
|
takeoff = position_setpoint_s::SETPOINT_TYPE_TAKEOFF,
|
||||||
land,
|
land = position_setpoint_s::SETPOINT_TYPE_LAND,
|
||||||
idle,
|
idle = position_setpoint_s::SETPOINT_TYPE_IDLE,
|
||||||
offboard, // only part of this structure due to legacy reason. It is not used within the Auto flighttasks
|
offboard = position_setpoint_s::SETPOINT_TYPE_OFFBOARD, // only part of this structure due to legacy reason. It is not used within the Auto flighttasks
|
||||||
follow_target
|
follow_target = position_setpoint_s::SETPOINT_TYPE_FOLLOW_TARGET,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class State {
|
enum class State {
|
||||||
|
|||||||
Reference in New Issue
Block a user