AP_AHRS: remove get_primary_IMU_index from public interface

This commit is contained in:
Peter Barker 2023-09-18 17:22:08 +10:00 committed by Andrew Tridgell
parent 0b4007d22c
commit e83b6bcfcb
2 changed files with 2 additions and 5 deletions

View File

@ -2934,7 +2934,7 @@ int8_t AP_AHRS::_get_primary_core_index() const
uint8_t AP_AHRS::_get_primary_accel_index(void) const
{
if (ekf_type() != EKFType::NONE) {
return get_primary_IMU_index();
return _get_primary_IMU_index();
}
return AP::ins().get_primary_accel();
}
@ -2943,7 +2943,7 @@ uint8_t AP_AHRS::_get_primary_accel_index(void) const
uint8_t AP_AHRS::_get_primary_gyro_index(void) const
{
if (ekf_type() != EKFType::NONE) {
return get_primary_IMU_index();
return _get_primary_IMU_index();
}
return AP::ins().get_primary_gyro();
}

View File

@ -727,9 +727,6 @@ private:
EKFType ekf_type(void) const;
void update_DCM();
// get the index of the current primary IMU
uint8_t get_primary_IMU_index(void) const { return state.primary_IMU; }
/*
* home-related state
*/