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
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void Copter::rtl_return_start()
Vector3f destination = pv_location_to_vector(rally_point);
#else
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
wp_nav.set_wp_destination(destination);