FlightTaskIndex: add AutoLine

This commit is contained in:
Dennis Mannhart 2018-02-23 08:11:48 +01:00 committed by Lorenz Meier
parent 288ee2362e
commit fbe8a558b2
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ int FlightTasks::switchTask(FlightTaskIndex new_task_index)
_current_task = new (&_task_union.sport) FlightTaskSport();
break;
case 8:
case FlightTaskIndex::AutoLine:
_current_task = new (&_task_union.autoLine) FlightTaskAutoLine(this, "ALN");
break;

View File

@ -64,6 +64,7 @@ enum class FlightTaskIndex : int {
PositionSmooth,
Orbit,
Sport,
AutoLine,
Count // number of tasks
};