mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_AHRS: extend ekf fault status reporting coverage
This commit is contained in:
parent
d59d8cc6e3
commit
597ec61673
@ -739,7 +739,7 @@ AP_AHRS_NavEKF::EKF_TYPE AP_AHRS_NavEKF::active_EKF_type(void) const
|
||||
return EKF_TYPE_NONE;
|
||||
}
|
||||
if (always_use_EKF()) {
|
||||
uint8_t ekf_faults;
|
||||
uint16_t ekf_faults;
|
||||
EKF1.getFilterFaults(ekf_faults);
|
||||
if (ekf_faults == 0) {
|
||||
ret = EKF_TYPE1;
|
||||
@ -757,7 +757,7 @@ AP_AHRS_NavEKF::EKF_TYPE AP_AHRS_NavEKF::active_EKF_type(void) const
|
||||
return EKF_TYPE_NONE;
|
||||
}
|
||||
if (always_use_EKF()) {
|
||||
uint8_t ekf2_faults;
|
||||
uint16_t ekf2_faults;
|
||||
EKF2.getFilterFaults(-1,ekf2_faults);
|
||||
if (ekf2_faults == 0) {
|
||||
ret = EKF_TYPE2;
|
||||
|
Loading…
Reference in New Issue
Block a user