mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 02:04:07 +08:00
manual condition includes threshold values
This commit is contained in:
parent
aea7bd5b47
commit
50175ca7ea
@ -1944,8 +1944,8 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
|
||||
}
|
||||
|
||||
if (!_yaw_lock_engaged || fabsf(_manual.y) > HDG_HOLD_MAN_INPUT_THRESH ||
|
||||
fabsf(_manual.r) > HDG_HOLD_MAN_INPUT_THRESH) {
|
||||
if (!_yaw_lock_engaged || fabsf(_manual.y) >= HDG_HOLD_MAN_INPUT_THRESH ||
|
||||
fabsf(_manual.r) >= HDG_HOLD_MAN_INPUT_THRESH) {
|
||||
_hdg_hold_enabled = false;
|
||||
_yaw_lock_engaged = false;
|
||||
_att_sp.roll_body = _manual.y * _parameters.man_roll_max_rad;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user