mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 14:30:34 +08:00
Add FlightTasksManual/Altitude to position controller
This commit is contained in:
committed by
Beat Küng
parent
98e4afaf6e
commit
a9ac94dd83
@@ -52,6 +52,14 @@ int FlightTasks::switchTask(int task_number)
|
||||
_current_task = new (&_task_union.sport) FlightTaskSport(this, "SPO");
|
||||
break;
|
||||
|
||||
case 3:
|
||||
_current_task = new (&_task_union.altitude) FlightTaskSport(this, "MANALT");
|
||||
break;
|
||||
|
||||
case 4:
|
||||
_current_task = new (&_task_union.position) FlightTaskSport(this, "MANPOS");
|
||||
break;
|
||||
|
||||
case -1:
|
||||
/* disable tasks is a success */
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user