: For understanding why certain fields are read-only (nil) or how metatables define property access, the official Lua 11.1 - Arrays documentation is the standard reference.
Lua Script Test: Setting Horizontal Velocity During LAND Mode
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: no set pitch on land.lua
: In Lua, properties act like variables. If a property has a "getter" but no "setter," you can read the current pitch but cannot change it directly via that specific variable.
Are you trying to during a specific landing maneuver, or are you encountering a script error when trying to assign a value to a pitch variable? : For understanding why certain fields are read-only
: The primary hub for sharing Lua Script Tests and troubleshooting landing modes.
: 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. Are you trying to during a specific landing
: 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