mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-27 02:58:31 -04:00
commented out home.alt since it's always 0
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3092 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
900d0c1819
commit
56d8da0381
@ -136,7 +136,7 @@ static long read_alt_to_hold()
|
|||||||
if(g.RTL_altitude < 0)
|
if(g.RTL_altitude < 0)
|
||||||
return current_loc.alt;
|
return current_loc.alt;
|
||||||
else
|
else
|
||||||
return g.RTL_altitude + home.alt;
|
return g.RTL_altitude;// + home.alt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -227,6 +227,7 @@ static void init_home()
|
|||||||
|
|
||||||
// Save Home to EEPROM
|
// Save Home to EEPROM
|
||||||
// -------------------
|
// -------------------
|
||||||
|
// no need to save this to EPROM
|
||||||
set_command_with_index(home, 0);
|
set_command_with_index(home, 0);
|
||||||
print_wp(&home, 0);
|
print_wp(&home, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user