1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

use fabsf instead abs

This commit is contained in:
Cosimo Corrado 2014-03-23 22:07:09 +01:00
parent 739aefd53b
commit fc30ababf0

View File

@ -454,11 +454,11 @@ static void settingsUpdatedCb(__attribute__((unused)) UAVObjEvent *objEv)
mag_scale[2] = cal.mag_scale.Z;
accel_temp_calibrated = (agcal.temp_calibrated_extent.max - agcal.temp_calibrated_extent.min > .1f) &&
(abs(agcal.accel_temp_coeff.X) > 1e-9f || abs(agcal.accel_temp_coeff.Y) > 1e-9f || abs(agcal.accel_temp_coeff.Z) > 1e-9f);
(fabsf(agcal.accel_temp_coeff.X) > 1e-9f || fabsf(agcal.accel_temp_coeff.Y) > 1e-9f || fabsf(agcal.accel_temp_coeff.Z) > 1e-9f);
gyro_temp_calibrated = (agcal.temp_calibrated_extent.max - agcal.temp_calibrated_extent.min > .1f) &&
(abs(agcal.gyro_temp_coeff.X) > 1e-9f || abs(agcal.gyro_temp_coeff.Y) > 1e-9f ||
abs(agcal.gyro_temp_coeff.Z) > 1e-9f || abs(agcal.gyro_temp_coeff.Z2) > 1e-9f);
(fabsf(agcal.gyro_temp_coeff.X) > 1e-9f || fabsf(agcal.gyro_temp_coeff.Y) > 1e-9f ||
fabsf(agcal.gyro_temp_coeff.Z) > 1e-9f || fabsf(agcal.gyro_temp_coeff.Z2) > 1e-9f);
AttitudeSettingsData attitudeSettings;