diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 0373dfce39..3e240e6736 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -758,6 +758,14 @@ function Location_ud:lat() end ---@param value integer function Location_ud:lat(value) end +-- get altitude frame +---@return integer +---| '0' # ABSOLUTE +---| '1' # ABOVE_HOME +---| '2' # ABOVE_ORIGIN +---| '3' # ABOVE_TERRAIN +function Location_ud:get_alt_frame() end + -- desc ---@param desired_frame integer ---| '0' # ABSOLUTE diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 22cdbc81e5..3f56d84006 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -18,10 +18,10 @@ userdata Location method get_vector_from_origin_NEU boolean Vector3f'Null userdata Location method get_bearing float Location userdata Location method get_distance_NED Vector3f Location userdata Location method get_distance_NE Vector2f Location +userdata Location method get_alt_frame uint8_t userdata Location method change_alt_frame boolean Location::AltFrame'enum Location::AltFrame::ABSOLUTE Location::AltFrame::ABOVE_TERRAIN userdata Location method copy Location - include AP_AHRS/AP_AHRS.h singleton AP_AHRS rename ahrs