Skip to content
Snippets Groups Projects
Commit e9a9e332 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AP_AHRS: use EKF use_compass() if EKF enabled

this allows magfailed status to show on console via SYS_STATUS health
bits
parent 5d40ec80
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment