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:
: 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.
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 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
: 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.
Lua Script Test: Setting Horizontal Velocity During LAND Mode
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:
Set Pitch On Land.lua | No
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:
: 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. no set pitch on land.lua
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? If you need to adjust the pitch—perhaps for
: 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 Key Resources for Lua Developers : In 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.
Lua Script Test: Setting Horizontal Velocity During LAND Mode
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: