The EKF knows which way is down
What ArduPilot says:
- EKF2 IMUN tilt alignment complete
- EKF3 IMUN tilt alignment complete
The copy of the EKF (ArduPilot's position and attitude estimator) for this IMU is now sure of roll and pitch: in EKF3 its tilt uncertainty has dropped below 5°. With the aircraft standing still this takes a few seconds after “initialised”; carrying or tilting the aircraft meanwhile delays it. The heading is aligned next. Until this line has appeared the aircraft will not arm.
The code that sends it
EKF2 IMUN tilt alignment complete
libraries/AP_NavEKF2/AP_NavEKF2_Control.cpp NavEKF2_core::checkAttitudeAlignmentStatus() · Open in ArduPilot Copter-4.7.1
EKF3 IMUN tilt alignment complete
libraries/AP_NavEKF3/AP_NavEKF3_Control.cpp NavEKF3_core::checkAttitudeAlignmentStatus() · Open in ArduPilot Copter-4.7.1