mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:03:34 +08:00
FlightTaskIndex: add AutoLine
This commit is contained in:
committed by
Lorenz Meier
parent
288ee2362e
commit
fbe8a558b2
@@ -72,7 +72,7 @@ int FlightTasks::switchTask(FlightTaskIndex new_task_index)
|
|||||||
_current_task = new (&_task_union.sport) FlightTaskSport();
|
_current_task = new (&_task_union.sport) FlightTaskSport();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case FlightTaskIndex::AutoLine:
|
||||||
_current_task = new (&_task_union.autoLine) FlightTaskAutoLine(this, "ALN");
|
_current_task = new (&_task_union.autoLine) FlightTaskAutoLine(this, "ALN");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ enum class FlightTaskIndex : int {
|
|||||||
PositionSmooth,
|
PositionSmooth,
|
||||||
Orbit,
|
Orbit,
|
||||||
Sport,
|
Sport,
|
||||||
|
AutoLine,
|
||||||
|
|
||||||
Count // number of tasks
|
Count // number of tasks
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user