mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 20:41:36 +08:00
FlightTask: activate tasks with setpoints in use
This commit is contained in:
committed by
Lorenz Meier
parent
389f897b04
commit
216279b576
@@ -43,6 +43,9 @@ using namespace matrix;
|
||||
bool FlightTaskManualAltitude::activate()
|
||||
{
|
||||
bool ret = FlightTaskManualStabilized::activate();
|
||||
_thrust_setpoint(2) = NAN; // altitude is controlled from position/velocity
|
||||
_position_setpoint(2) = _position(2);
|
||||
_velocity_setpoint(2) = 0.0f;
|
||||
_setDefaultConstraints();
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user