AP_AHRS: expose get_NavEKF as non-const

better than having two methods
This commit is contained in:
Andrew Tridgell 2014-01-20 16:47:35 +11:00
parent f0f76920fa
commit f09ae0c2d0

View File

@ -73,8 +73,7 @@ public:
// true if compass is being used
bool use_compass(void);
const NavEKF &get_NavEKF(void) const { return EKF; }
NavEKF* get_EKF(void) { return &EKF; }
NavEKF &get_NavEKF(void) { return EKF; }
// return secondary attitude solution if available, as eulers in radians
bool get_secondary_attitude(Vector3f &eulers);