AP_NavEKF2: added have_ekf_logging()

This commit is contained in:
Andrew Tridgell 2016-05-05 09:24:04 +10:00
parent b7ba0fa458
commit 4e4c575f16

View File

@ -268,6 +268,9 @@ public:
// allow the enable flag to be set by Replay // allow the enable flag to be set by Replay
void set_enable(bool enable) { _enable.set(enable); } void set_enable(bool enable) { _enable.set(enable); }
// are we doing sensor logging inside the EKF?
bool have_ekf_logging(void) const { return _enable_logging != 0; }
private: private:
uint8_t num_cores; // number of allocated cores uint8_t num_cores; // number of allocated cores
uint8_t primary; // current primary core uint8_t primary; // current primary core