Open
Description
The GSF yaw estimator can sometimes produce a very bad yaw. This particularly affects fixed wing aircraft with no compass. EKF3 initialises after launch using GSF and can result in the EKF getting bad roll/pitch estimates.
This issue is to collect examples and work on a fix
Ideally we would get an example with replay logging enabled to be able to analyse properly. That requires LOG_DISARMED=1 and LOG_REPLAY=1
Examples:
- https://discuss.ardupilot.org/t/ekf3-yaw-alignment-on-v4-4-dev-brought-my-plane-down/98076 log http://uav.tridgell.net/GSF-failures/00000071.BIN
Possible ideas:
- use the old GPS alignment method for fixed wing with no compass
- before activating EKF3 (over DCM) check for low velocity innovations for N seconds
- if the aircraft has an airspeed sensor (which the first example above does) then we could bound the yaw error compared with GPS ground course assuming zero sideslip, and reject GSF if it is too far off