AP_AHRS: added have_ekf_logging() API

This commit is contained in:
Andrew Tridgell 2016-05-04 14:02:12 +10:00
parent 71b121837a
commit 795080742e
3 changed files with 14 additions and 0 deletions

View File

@ -188,6 +188,11 @@ public:
return nullptr;
}
// is the EKF backend doing its own sensor logging?
virtual bool have_ekf_logging(void) const {
return false;
}
// Euler angles (radians)
float roll;
float pitch;

View File

@ -1272,5 +1272,11 @@ bool AP_AHRS_NavEKF::getGpsGlitchStatus()
}
// is the EKF backend doing its own sensor logging?
bool AP_AHRS_NavEKF::have_ekf_logging(void) const
{
return false;
}
#endif // AP_AHRS_NAVEKF_AVAILABLE

View File

@ -220,6 +220,9 @@ public:
// used by Replay to force start at right timestamp
void force_ekf_start(void) { force_ekf = true; }
// is the EKF backend doing its own sensor logging?
bool have_ekf_logging(void) const override;
private:
enum EKF_TYPE {EKF_TYPE_NONE=0,
#if AP_AHRS_WITH_EKF1