mirror of https://github.com/ArduPilot/ardupilot
AP_AccelCal: remove unused calc_mean_squared_residuals
This commit is contained in:
parent
2c2f345c84
commit
576dd2bf9e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue