AP_NavEKF2: Level processor loading between frames
Don't fuse other measurements on the same frame that magnetometer measurements arrive if running at a high frame rate as there will be insufficient time to complete other operations.
master
Paul Riseborough9 years agocommitted byAndrew Tridgell
// it requires a stable wind for best results and should not be used for aerobatic flight with manoeuvres that induce large sidslip angles (eg knife-edge, spins, etc)
// it requires a stable wind for best results and should not be used for aerobatic flight with manoeuvres that induce large sidslip angles (eg knife-edge, spins, etc)
voidNavEKF2_core::SelectBetaFusion()
voidNavEKF2_core::SelectBetaFusion()
{
{
// Check if the magnetometer has been fused on that time step and the filter is running at faster than 200 Hz
// If so, don't fuse measurements on this time step to reduce frame over-runs
if(magFusePerformed&&dtIMUavg<0.005f){
return;
}
// set true when the fusion time interval has triggered
// set true when the fusion time interval has triggered