mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
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:
committed by
Daniel Agar
parent
9e2375ab91
commit
6df299738e
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user