Browse Source

AP_Compass: remove unused calc_mean_squared_residuals

master
Randy Mackay 5 years ago committed by Andrew Tridgell
parent
commit
b862cc0333
  1. 5
      libraries/AP_Compass/CompassCalibrator.cpp
  2. 1
      libraries/AP_Compass/CompassCalibrator.h

5
libraries/AP_Compass/CompassCalibrator.cpp

@ -461,11 +461,6 @@ float CompassCalibrator::calc_residual(const Vector3f& sample, const param_t& pa @@ -461,11 +461,6 @@ float CompassCalibrator::calc_residual(const Vector3f& sample, const param_t& pa
return params.radius - (softiron*(sample+params.offset)).length();
}
float CompassCalibrator::calc_mean_squared_residuals() const
{
return calc_mean_squared_residuals(_params);
}
// calc the fitness given a set of parameters (offsets, diagonals, off diagonals)
float CompassCalibrator::calc_mean_squared_residuals(const param_t& params) const
{

1
libraries/AP_Compass/CompassCalibrator.h

@ -133,7 +133,6 @@ private: @@ -133,7 +133,6 @@ private:
// calc the fitness of the parameters (offsets, diagonals, off diagonals) vs all the samples collected
// returns 1.0e30f if the sample buffer is empty
float calc_mean_squared_residuals(const param_t& params) const;
float calc_mean_squared_residuals() const;
// calculate initial offsets by simply taking the average values of the samples
void calc_initial_offset();

Loading…
Cancel
Save