Copter: set home alt to absolute alt

This commit is contained in:
Randy Mackay 2014-06-11 11:00:31 +09:00
parent 09fc777ab9
commit 5c305989b9
2 changed files with 0 additions and 2 deletions

View File

@ -8,7 +8,6 @@ static void init_home()
// copter uses 0 home altitude
Location loc = gps.location();
loc.alt = 0;
ahrs.set_home(loc);

View File

@ -801,7 +801,6 @@ static void do_set_home(const AP_Mission::Mission_Command& cmd)
init_home();
} else {
Location loc = cmd.content.location;
loc.alt = 0;
ahrs.set_home(loc);
set_home_is_set(true);
}