mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 01:30:36 +08:00
FlightTasks: add stabilized and fix switchTask for Altitude and Position
This commit is contained in:
committed by
Beat Küng
parent
39731277ad
commit
dcdf4d50a0
@@ -53,11 +53,15 @@ int FlightTasks::switchTask(int task_number)
|
||||
break;
|
||||
|
||||
case 3:
|
||||
_current_task = new (&_task_union.altitude) FlightTaskSport(this, "MANALT");
|
||||
_current_task = new (&_task_union.altitude) FlightTaskManualAltitude(this, "MANALT");
|
||||
break;
|
||||
|
||||
case 4:
|
||||
_current_task = new (&_task_union.position) FlightTaskSport(this, "MANPOS");
|
||||
_current_task = new (&_task_union.position) FlightTaskManualPosition(this, "MANPOS");
|
||||
break;
|
||||
|
||||
case 5:
|
||||
_current_task = new (&_task_union.stabilized) FlightTaskManualStabilized(this, "MANSTAB");
|
||||
break;
|
||||
|
||||
case -1:
|
||||
|
||||
Reference in New Issue
Block a user