From d1d778652bf6882f3f80f0b7a2e9eccde2a8e771 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 19 Oct 2015 16:12:59 +0900 Subject: [PATCH] Common: add location alt max definition --- libraries/AP_Common/AP_Common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index e8d9fc90c1..cf8e9b2ccf 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -70,6 +70,8 @@ #define ToRad(x) radians(x) // *pi/180 #define ToDeg(x) degrees(x) // *180/pi +#define LOCATION_ALT_MAX_M 83000 // maximum altitude (in meters) that can be fit into Location structure's alt field + /* check if bit bitnumber is set in value, returned as a bool. Bitnumber starts at 0 for the first bit