AP_NavEKF3: added a getter function to infer the source index used by ekf3

This commit is contained in:
nrt 2022-08-06 20:39:34 +05:30 committed by Randy Mackay
parent 2c58206a75
commit 0c65cd1b47
2 changed files with 9 additions and 0 deletions

View File

@ -1239,6 +1239,12 @@ void NavEKF3::getAccelBias(int8_t instance, Vector3f &accelBias) const
}
}
// returns active source set used by EKF3
uint8_t NavEKF3::get_active_source_set() const
{
return sources.get_active_source_set();
}
// reset body axis gyro bias estimates
void NavEKF3::resetGyroBias(void)
{

View File

@ -97,6 +97,9 @@ public:
// An out of range instance (eg -1) returns data for the primary instance
void getAccelBias(int8_t instance, Vector3f &accelBias) const;
//returns index of the active source set used
uint8_t get_active_source_set() const;
// reset body axis gyro bias estimates
void resetGyroBias(void);