From 1269b07d9accc71920a969f1bbb549fc3ed8dd20 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Fri, 13 Jan 2012 16:47:38 -0800 Subject: [PATCH] Made RTL always the current Altitude --- ArduCopter/commands.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/commands.pde b/ArduCopter/commands.pde index cb3767332b..1561001d25 100644 --- a/ArduCopter/commands.pde +++ b/ArduCopter/commands.pde @@ -107,10 +107,13 @@ static void set_cmd_with_index(struct Location temp, int i) static int32_t read_alt_to_hold() { + return current_loc.alt; + /* if(g.RTL_altitude <= 0) return current_loc.alt; else return g.RTL_altitude;// + home.alt; + */ }