mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 23:47:34 +08:00
allow yawing with 0 throttle, changed condition to not being landed
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user