mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 05:40:35 +08:00
FlightTaskManualAltitudeSmooth: create taks
This commit is contained in:
committed by
Beat Küng
parent
d44c406fb2
commit
39c77546d3
@@ -64,6 +64,10 @@ int FlightTasks::switchTask(int task_number)
|
||||
_current_task = new (&_task_union.stabilized) FlightTaskManualStabilized(this, "MANSTAB");
|
||||
break;
|
||||
|
||||
case 6:
|
||||
_current_task = new (&_task_union.altitude_smooth) FlightTaskManualAltitudeSmooth(this, "MANALTSM");
|
||||
break;
|
||||
|
||||
case -1:
|
||||
/* disable tasks is a success */
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user