Copter: rename set_alt to set_alt_cm in control_rtl

This commit is contained in:
Randy Mackay 2016-04-28 19:54:09 +09:00
parent fac7b7c566
commit caf6bbc2e0
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ void Copter::rtl_compute_return_alt(const Location_Class &rtl_origin_point, Loca
if (!rtl_path.terrain_used || !rtl_return_target.change_alt_frame(Location_Class::ALT_FRAME_ABOVE_TERRAIN)) { if (!rtl_path.terrain_used || !rtl_return_target.change_alt_frame(Location_Class::ALT_FRAME_ABOVE_TERRAIN)) {
if (!rtl_return_target.change_alt_frame(Location_Class::ALT_FRAME_ABOVE_HOME)) { if (!rtl_return_target.change_alt_frame(Location_Class::ALT_FRAME_ABOVE_HOME)) {
// this should never happen but just in case // this should never happen but just in case
rtl_return_target.set_alt(0, Location_Class::ALT_FRAME_ABOVE_HOME); rtl_return_target.set_alt_cm(0, Location_Class::ALT_FRAME_ABOVE_HOME);
} }
} }