AP_AHRS: added set_ekf_use()

This commit is contained in:
Andrew Tridgell 2014-01-04 12:39:20 +11:00
parent a112694a50
commit a74fcc5a93

View File

@ -90,6 +90,8 @@ public:
Vector3f get_velocity_NED(void);
Vector3f get_relative_position_NED(void);
void set_ekf_use(bool setting) { _ekf_use.set(setting); }
private:
bool using_EKF(void) const { return ekf_started && _ekf_use && EKF.healthy(); }