mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-27 02:04:00 -04:00
AP_AHRS: move using_EKF to .cpp to make it easier in gdb
This commit is contained in:
parent
eedd88c2ec
commit
be33a9634e
@ -227,4 +227,10 @@ bool AP_AHRS_NavEKF::get_relative_position_NED(Vector3f &vec) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool AP_AHRS_NavEKF::using_EKF(void) const
|
||||||
|
{
|
||||||
|
return ekf_started && _ekf_use && EKF.healthy();
|
||||||
|
}
|
||||||
|
|
||||||
#endif // AP_AHRS_NAVEKF_AVAILABLE
|
#endif // AP_AHRS_NAVEKF_AVAILABLE
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ public:
|
|||||||
void set_ekf_use(bool setting) { _ekf_use.set(setting); }
|
void set_ekf_use(bool setting) { _ekf_use.set(setting); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool using_EKF(void) const { return ekf_started && _ekf_use && EKF.healthy(); }
|
bool using_EKF(void) const;
|
||||||
|
|
||||||
NavEKF EKF;
|
NavEKF EKF;
|
||||||
AP_Baro &_baro;
|
AP_Baro &_baro;
|
||||||
|
Loading…
Reference in New Issue
Block a user