AP_Compass: remove unused calc_mean_squared_residuals

This commit is contained in:
Randy Mackay 2019-11-21 20:36:53 +09:00 committed by Andrew Tridgell
parent feb0f141fa
commit 90cfbe01e4
2 changed files with 0 additions and 6 deletions

View File

@ -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
{

View File

@ -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();