mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 21:24:06 +08:00
fixed implicit conversion
This commit is contained in:
parent
89a2f5057f
commit
254358ef86
@ -1888,7 +1888,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
|
||||
/* heading control */
|
||||
if (fabsf(_manual.y) < HDG_HOLD_MAN_INPUT_THRESH &&
|
||||
fabs(_manual.r) < HDG_HOLD_MAN_INPUT_THRESH) {
|
||||
fabsf(_manual.r) < HDG_HOLD_MAN_INPUT_THRESH) {
|
||||
|
||||
/* heading / roll is zero, lock onto current heading */
|
||||
if (fabsf(_ctrl_state.yaw_rate) < HDG_HOLD_YAWRATE_THRESH && !_yaw_lock_engaged) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user