From 06345926c8796f3206ba68038cb59c3321119044 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 31 Jan 2022 15:35:06 +1100 Subject: [PATCH] AP_Scripting: removed terrain home correction --- libraries/AP_Scripting/docs/docs.lua | 3 +-- libraries/AP_Scripting/generator/description/bindings.desc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index f74195d5eb..073c2c291b 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1457,9 +1457,8 @@ function terrain:height_terrain_difference_home(extrapolate) end -- desc ---@param loc Location_ud ----@param corrected boolean ---@return number|nil -function terrain:height_amsl(loc, corrected) end +function terrain:height_amsl(loc) end -- desc ---@return integer diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index fba015b46e..0bfb3ec4f3 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -173,7 +173,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 boolean +singleton AP_Terrain method height_amsl boolean Location float'Null singleton AP_Terrain method height_terrain_difference_home boolean float'Null boolean singleton AP_Terrain method height_above_terrain boolean float'Null boolean