: For complex maneuvers (like a "wander" orbit or precise touchdown angle), some developers disable the default AI and write their own PID controllers in Lua to translate orientation into raw Yaw/Pitch/Roll instructions. Key Resources for Lua Developers
: The primary hub for sharing Lua Script Tests and troubleshooting landing modes.
: Once the landing logic initiates, the autopilot typically ignores horizontal and pitch velocity adjustments from scripts to maintain a vertical descent and stable touchdown. Workarounds for Scripting Pitch
: Some advanced users bypass the internal Lua limitations by injecting MAVLink messages directly. This can force a target attitude, though it risks fighting the internal Extended Kalman Filter (EKF) which might reject measurements it deems unstable.
If you need to adjust the pitch—perhaps for a specialized vertical landing or to angle a camera/sensor while stationary—developers often use these methods: