mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 11:30:34 +08:00
fixed implicit conversion
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user