allow yawing with 0 throttle, changed condition to not being landed

This commit is contained in:
Andreas Antener
2016-01-05 18:14:36 +01:00
committed by Lorenz Meier
parent 7d5a12f997
commit 99f4487cc3
@@ -1765,8 +1765,8 @@ MulticopterPositionControl::task_main()
_att_sp.yaw_body = _yaw;
}
/* do not move yaw while arming */
else if (_manual.z > 0.1f) {
/* do not move yaw while sitting on the ground */
else if (!_vehicle_status.condition_landed) {
const float yaw_offset_max = _params.man_yaw_max / _params.mc_att_yaw_p;
_att_sp.yaw_sp_move_rate = _manual.r * _params.man_yaw_max;