: 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.
In the context of ArduPilot Lua scripting, there is no simple vehicle:set_pitch() function for a landed state because the autopilot's internal takes priority over external inputs to ensure safety and stability. The "No Set Pitch" Challenge
When a vehicle is in or has detected it is on land , the flight controller locks down many attitude controls to prevent "ground loops" or tip-overs. For developers, this means: no set pitch on land.lua
Lua Script Test: Setting Horizontal Velocity During LAND Mode
: 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. : In Lua, properties act like variables
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 (nil) or how metatables define property access, the official Lua 11.1 - Arrays documentation is the standard reference. The "No Set Pitch" Challenge When a vehicle
: 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