AP_NavEKF2: Enable use of backup magnetometers after a timeout
If the magnetometer fails innovation consistency checks for too long (currently 10 sec), then the next available sensor approved for yaw measurement will be used.
master
Paul Riseborough9 years agocommitted byAndrew Tridgell
// compass offsets are valid if we have finalised magnetic field initialisation and magnetic field learning is not prohibited and primary compass is valid
QuaternionprevQuatMagReset;// Quaternion from the last time the magnetic field state reset condition test was performed
uint8_tfusionHorizonOffset;// number of IMU samples that the fusion time horizon has been shifted forward to prevent multiple EKF instances fusing data at the same time
floathgtInnovFiltState;// state used for fitering of the height innovations used for pre-flight checks
uint8_tmagSelectIndex;// Index of the magnetometer that is being used by the EKF
// variables used to calulate a vertical velocity that is kinematically consistent with the verical position
floatposDownDerivative;// Rate of chage of vertical position (dPosD/dt) in m/s. This is the first time derivative of PosD.