Browse Source

AP_InertialSensors: compiler warnings: apply is_zero(float) or is_equal(float)

master
Tom Pittenger 10 years ago committed by Andrew Tridgell
parent
commit
820199635b
  1. 2
      libraries/AP_InertialSensor/AP_InertialSensor.cpp

2
libraries/AP_InertialSensor/AP_InertialSensor.cpp

@ -989,7 +989,7 @@ void AP_InertialSensor::_calibrate_find_delta(float dS[6], float JS[6][6], float @@ -989,7 +989,7 @@ void AP_InertialSensor::_calibrate_find_delta(float dS[6], float JS[6][6], float
//eliminate all nonzero entries below JS[i][i]
for( j=i+1; j<6; j++ ) {
mu = JS[i][j]/JS[i][i];
if( !is_zero(mu) ) {
if( !AP_Math::is_zero(mu) ) {
dS[j] -= mu*dS[i];
for( k=j; k<6; k++ ) {
JS[k][j] -= mu*JS[k][i];

Loading…
Cancel
Save