AP_AHRS: remove unused getGpsGlitchStatus method

This commit is contained in:
Peter Barker 2021-08-28 15:09:57 +10:00 committed by Peter Barker
parent 5f8237d1ab
commit ca6d214bb3
2 changed files with 0 additions and 11 deletions

View File

@ -2834,15 +2834,6 @@ bool AP_AHRS::get_vel_innovations_and_variances_for_source(uint8_t source, Vecto
return false;
}
bool AP_AHRS::getGpsGlitchStatus() const
{
nav_filter_status ekf_status {};
if (!get_filter_status(ekf_status)) {
return false;
}
return ekf_status.flags.gps_glitching;
}
//get the index of the active airspeed sensor, wrt the primary core
uint8_t AP_AHRS::get_active_airspeed_index() const
{

View File

@ -299,8 +299,6 @@ public:
// returns the estimated magnetic field offsets in body frame
bool get_mag_field_correction(Vector3f &ret) const override;
bool getGpsGlitchStatus() const;
// return the index of the airspeed we should use for airspeed measurements
// with multiple airspeed sensors and airspeed affinity in EKF3, it is possible to have switched
// over to a lane not using the primary airspeed sensor, so AHRS should know which airspeed sensor