Made RTL always the current Altitude

This commit is contained in:
Jason Short 2012-01-13 16:47:38 -08:00
parent ec9880f725
commit 1269b07d9a
1 changed files with 3 additions and 0 deletions

View File

@ -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;
*/
}