diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 77b5e2c78c..1bad88da34 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1500,8 +1500,9 @@ function terrain:height_terrain_difference_home(extrapolate) end -- desc ---@param loc Location_ud +---@param corrected boolean ---@return number|nil -function terrain:height_amsl(loc) end +function terrain:height_amsl(loc, corrected) end -- desc ---@return integer diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 240b3e6cd0..a2fba54d7f 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -176,7 +176,7 @@ singleton AP_Terrain alias terrain singleton AP_Terrain method enabled boolean singleton AP_Terrain enum TerrainStatusDisabled TerrainStatusUnhealthy TerrainStatusOK singleton AP_Terrain method status uint8_t -singleton AP_Terrain method height_amsl boolean Location float'Null +singleton AP_Terrain method height_amsl boolean Location float'Null boolean singleton AP_Terrain method height_terrain_difference_home boolean float'Null boolean singleton AP_Terrain method height_above_terrain boolean float'Null boolean