Copter: fix RTL compile error when rally disabled

Thanks to derekxm for finding this
This commit is contained in:
Randy Mackay 2015-11-14 12:39:23 +09:00
parent 731c44d053
commit 05246ea0c7

View File

@ -121,7 +121,7 @@ void Copter::rtl_return_start()
Vector3f destination = pv_location_to_vector(rally_point); Vector3f destination = pv_location_to_vector(rally_point);
#else #else
Vector3f destination = pv_location_to_vector(ahrs.get_home()); Vector3f destination = pv_location_to_vector(ahrs.get_home());
destination.z = pv_alt_above_origin(rtl_alt)); destination.z = pv_alt_above_origin(rtl_alt);
#endif #endif
wp_nav.set_wp_destination(destination); wp_nav.set_wp_destination(destination);