mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_AHRS: set AP_Notify gps_glitching flag
This commit is contained in:
parent
0d5c98ad45
commit
1ddf38869a
@ -195,6 +195,7 @@ void AP_AHRS_NavEKF::update_EKF2(void)
|
||||
nav_filter_status filt_state;
|
||||
EKF2.getFilterStatus(-1,filt_state);
|
||||
AP_Notify::flags.gps_fusion = filt_state.flags.using_gps; // Drives AP_Notify flag for usable GPS.
|
||||
AP_Notify::flags.gps_glitching = filt_state.flags.gps_glitching;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -266,6 +267,7 @@ void AP_AHRS_NavEKF::update_EKF3(void)
|
||||
nav_filter_status filt_state;
|
||||
EKF3.getFilterStatus(-1,filt_state);
|
||||
AP_Notify::flags.gps_fusion = filt_state.flags.using_gps; // Drives AP_Notify flag for usable GPS.
|
||||
AP_Notify::flags.gps_glitching = filt_state.flags.gps_glitching;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user