Browse Source

AP_AHRS: use EKF use_compass() if EKF enabled

this allows magfailed status to show on console via SYS_STATUS health
bits
master
Andrew Tridgell 11 years ago
parent
commit
e9a9e33280
  1. 3
      libraries/AP_AHRS/AP_AHRS_NavEKF.cpp

3
libraries/AP_AHRS/AP_AHRS_NavEKF.cpp

@ -166,6 +166,9 @@ bool AP_AHRS_NavEKF::airspeed_estimate(float *airspeed_ret) const @@ -166,6 +166,9 @@ bool AP_AHRS_NavEKF::airspeed_estimate(float *airspeed_ret) const
// true if compass is being used
bool AP_AHRS_NavEKF::use_compass(void)
{
if (using_EKF()) {
return EKF.use_compass();
}
return AP_AHRS_DCM::use_compass();
}

Loading…
Cancel
Save