AP_NavEKF3: bootstrap reset retains stale stationary yaw reference
Bug Report
Issue details
An EKF3 bootstrap reset while stationary does not reset the static yaw reference (yawAngDataStatic) to match the newly initialized attitude.
With no configured yaw source (EK3_SRC1_YAW=0), static yaw fusion can pull the reset filter toward the previous flight’s yaw reference instead of maintaining the zero-yaw bootstrap attitude.
Steps to reproduce in Copter SITL:
- Set
AHRS_EKF_TYPE=3,EK3_SRC1_YAW=0,EK3_GSF_USE_MASK=0, andRC8_OPTION=187. - Take off in ALT_HOLD and turn to approximately 90°.
- Land, disarm, and allow the vehicle to settle.
- Trigger the EKF bootstrap reset using RC8.
- Observe the stationary yaw estimate after reset.
Expected: yaw remains near the zero-yaw bootstrap attitude.
Observed: yaw moves away from zero after reset. In the regression run, it reached 209° by the timeout.
Initializing the static yaw reference alongside the bootstrap quaternion resolves the regression. With the fix, yaw remained within 5° of zero for 20 simulated seconds. The existing EKFBootstrapReset autotest also passed.
Version
ArduPilot upstream master at aa788b0555, tested on 30 September 2026.
Platform
[ ] All [ ] AntennaTracker [x] Copter [ ] Plane [ ] Rover [ ] Submarine
Airframe type
Simulated quadcopter.
Hardware type
Copter SITL; no physical autopilot hardware tested.
Logs n/a
Source: ArduPilot/ardupilot