Skip to content

Commit

Permalink
FlightTaskAuto set WaypointType from position setpoint types
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Nov 11, 2018
1 parent 246b879 commit 4e2bf27
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
* of the size
*/
enum class WaypointType : int {
position = 0,
velocity,
loiter,
takeoff,
land,
idle,
offboard, // only part of this structure due to legacy reason. It is not used within the Auto flighttasks
follow_target
position = position_setpoint_s::SETPOINT_TYPE_POSITION,
velocity = position_setpoint_s::SETPOINT_TYPE_VELOCITY,
loiter = position_setpoint_s::SETPOINT_TYPE_LOITER,
takeoff = position_setpoint_s::SETPOINT_TYPE_TAKEOFF,
land = position_setpoint_s::SETPOINT_TYPE_LAND,
idle = position_setpoint_s::SETPOINT_TYPE_IDLE,
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 = position_setpoint_s::SETPOINT_TYPE_FOLLOW_TARGET,
};

enum class State {
Expand Down

0 comments on commit 4e2bf27

Please sign in to comment.