From 294b6699482a1c4323bd380d082f93e4fdca36f3 Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <tridge@samba.org>
Date: Mon, 14 Oct 2013 16:38:40 +1100
Subject: [PATCH] Plane: fixed rally altitude to be in meters

this matches the docs
---
 ArduPlane/rally.pde | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ArduPlane/rally.pde b/ArduPlane/rally.pde
index 976441174..b2508c66f 100644
--- a/ArduPlane/rally.pde
+++ b/ArduPlane/rally.pde
@@ -73,7 +73,7 @@ static Location rally_location_to_location(const RallyLocation &r_loc, const Loc
     //Currently can't do true AGL on the APM.  Relative altitudes are
     //relative to HOME point's altitude.  Terrain on the board is inbound
     //for the PX4, though.  This line will need to be updated when that happens:
-    ret.alt = r_loc.alt + homeloc.alt;
+    ret.alt = (r_loc.alt*100UL) + homeloc.alt;
 
     ret.lat = r_loc.lat;
     ret.lng = r_loc.lng;
-- 
GitLab