mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 05:30:34 +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
@@ -53,8 +53,9 @@ FlightTaskManualStabilized::FlightTaskManualStabilized(control::SuperBlock *pare
|
||||
|
||||
bool FlightTaskManualStabilized::activate()
|
||||
{
|
||||
_yaw_sp = _yaw;
|
||||
_yaw_sp = NAN;
|
||||
_yaw_rate_sp = 0.0f;
|
||||
_thr_sp = matrix::Vector3f(0.0f, 0.0f, -_throttle_hover.get());
|
||||
return FlightTaskManual::activate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user