FlightTaskManualAltitude/Position/Stabilized: activate with 0 velocity and hover thrust

This commit is contained in:
Dennis Mannhart
2018-01-04 18:10:47 +01:00
committed by Beat Küng
parent 8bafdba4f9
commit 157814b710
3 changed files with 5 additions and 3 deletions
@@ -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();
}