mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 18:07:35 +08:00
Use fabsf instead of fabs for floats
This commit is contained in:
committed by
Lorenz Meier
parent
e95410882b
commit
bcb8852c99
@@ -107,8 +107,8 @@ struct Parameters {
|
||||
mnt_mode_out != p.mnt_mode_out ||
|
||||
mnt_mav_sysid != p.mnt_mav_sysid ||
|
||||
mnt_mav_compid != p.mnt_mav_compid ||
|
||||
fabs(mnt_ob_lock_mode - p.mnt_ob_lock_mode) > 1e-6 ||
|
||||
fabs(mnt_ob_norm_mode - p.mnt_ob_norm_mode) > 1e-6 ||
|
||||
fabsf(mnt_ob_lock_mode - p.mnt_ob_lock_mode) > 1e-6f ||
|
||||
fabsf(mnt_ob_norm_mode - p.mnt_ob_norm_mode) > 1e-6f ||
|
||||
mnt_man_pitch != p.mnt_man_pitch ||
|
||||
mnt_man_roll != p.mnt_man_roll ||
|
||||
mnt_man_yaw != p.mnt_man_yaw ||
|
||||
|
||||
Reference in New Issue
Block a user