// reduce weighting (increase observation noise) on baro if we are likely to be in ground effect
// when on the ground we use a smaller observation noise because there are less baro disturbances and we can do faster learning of Z accelerometer bias offsets
if(getGndEffectMode()&&vehicleArmed){
R_OBS[5]*=gndEffectBaroScaler;
}elseif(!vehicleArmed){
R_OBS[5]=sq(onGndBaroNoise);
}
// For data integrity checks we use the same measurement variances as used to calculate the Kalman gains for all measurements except GPS horizontal velocity