mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: use EKF use_compass() if EKF enabled
this allows magfailed status to show on console via SYS_STATUS health bits
This commit is contained in:
parent
6a654ff461
commit
62d526a50d
|
@ -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…
Reference in New Issue