AltitudeSmoothVel - Create new altitude flight task that uses the

velocity smoothing library to create a jerk-limited trajectory along the
Z axis. This FlightTask is used when MPC_POS_MODE = 3.
This commit is contained in:
bresch
2019-03-29 14:32:22 +01:00
committed by Daniele Pettenuzzo
parent 6c1399b328
commit 99fb88ce83
5 changed files with 293 additions and 0 deletions
@@ -990,6 +990,10 @@ MulticopterPositionControl::start_flight_task()
error = _flight_tasks.switchTask(FlightTaskIndex::ManualAltitudeSmooth);
break;
case 3:
error = _flight_tasks.switchTask(FlightTaskIndex::ManualAltitudeSmoothVel);
break;
default:
error = _flight_tasks.switchTask(FlightTaskIndex::ManualAltitude);
break;