mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 23:31:36 +08:00
FlightTaskManualAltitude/Position/Stabilized: activate with 0 velocity and hover thrust
This commit is contained in:
committed by
Beat Küng
parent
8bafdba4f9
commit
157814b710
@@ -52,7 +52,8 @@ FlightTaskManualAltitude::FlightTaskManualAltitude(control::SuperBlock *parent,
|
||||
|
||||
bool FlightTaskManualAltitude::activate()
|
||||
{
|
||||
_pos_sp_z = _position(2);
|
||||
_pos_sp_z = NAN;
|
||||
_vel_sp_z = 0.0f;
|
||||
return FlightTaskManualStabilized::activate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user