ekf2: Reduce sensitivity of preflight yaw check when not doing absolute aiding
When the EKF is not fusing in observations from the NE global reference frame, the tolerance to yaw errors is much higher. This changes will prevent false triggering of the preflight fail check when operating indoors without GPS where mag field errors can be high.
sbg
Paul Riseborough7 years agocommitted byLorenz Meier
// use a smaller tolerance when doing NE inertial frame aiding
yaw_test_limit=_nav_yaw_innov_test_lim;
}else{
// use a larger tolerance when not doing NE inertial frame aiding
yaw_test_limit=_yaw_innov_test_lim;
}
// filter the yaw innovations using a decaying envelope filter to prevent innovation sign changes due to angle wrapping allowinging large innvoations to pass checks after filtering.