From 989241a6bda88d3f8b785f3b1ff5bbb81f080142 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 25 Feb 2020 20:43:17 +0900 Subject: [PATCH] AP_Scripting: fix limits on Location alt field binding --- libraries/AP_Scripting/generator/description/bindings.desc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 6507871aed..c2cda49e30 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -4,7 +4,7 @@ include AP_Common/Location.h userdata Location field lat int32_t read write -900000000 900000000 userdata Location field lng int32_t read write -1800000000 1800000000 -userdata Location field alt int32_t read write -INT32_MAX INT32_MAX +userdata Location field alt int32_t read write (-LOCATION_ALT_MAX_M*100+1) (LOCATION_ALT_MAX_M*100-1) userdata Location field relative_alt boolean read write userdata Location field terrain_alt boolean read write userdata Location field origin_alt boolean read write