FlightTask: reactivate tasks on ground with empty setpoint

Such that they properly reset and don't try to take over smoothly from
their own setpoints generated in the last loop iteration.
This commit is contained in:
Matthias Grob
2021-04-21 14:37:25 +02:00
committed by Daniel Agar
parent 9e2375ab91
commit 6df299738e

View File

@@ -20,7 +20,7 @@ bool FlightTask::activate(const vehicle_local_position_setpoint_s &last_setpoint
void FlightTask::reActivate() void FlightTask::reActivate()
{ {
activate(getPositionSetpoint()); activate(empty_setpoint);
} }
bool FlightTask::updateInitialize() bool FlightTask::updateInitialize()