AP_AccelCal: remove unused calc_mean_squared_residuals

This commit is contained in:
Randy Mackay 2022-01-19 20:14:38 +09:00
parent 2c2f345c84
commit 576dd2bf9e
2 changed files with 0 additions and 8 deletions

View File

@ -391,13 +391,6 @@ float AccelCalibrator::calc_residual(const Vector3f& sample, const struct param_
return GRAVITY_MSS - (M*(sample+params.offset)).length();
}
// calculated the total mean squared fitness of all the collected samples using parameters
// converged to LSq estimator so far
float AccelCalibrator::calc_mean_squared_residuals() const
{
return calc_mean_squared_residuals(_param.s);
}
// calculated the total mean squared fitness of all the collected samples using parameters
// supplied
float AccelCalibrator::calc_mean_squared_residuals(const struct param_t& params) const

View File

@ -137,7 +137,6 @@ private:
// Function related to Gauss Newton Least square regression process
float calc_residual(const Vector3f& sample, const struct param_t& params) const;
float calc_mean_squared_residuals() const;
float calc_mean_squared_residuals(const struct param_t& params) const;
void calc_jacob(const Vector3f& sample, const struct param_t& params, VectorP& ret) const;
void run_fit(uint8_t max_iterations, float& fitness);