mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
Copter: set home alt to absolute alt
This commit is contained in:
parent
09fc777ab9
commit
5c305989b9
@ -8,7 +8,6 @@ static void init_home()
|
||||
|
||||
// copter uses 0 home altitude
|
||||
Location loc = gps.location();
|
||||
loc.alt = 0;
|
||||
|
||||
ahrs.set_home(loc);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user