mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Copter: fix RTL compile error when rally disabled
Thanks to derekxm for finding this
This commit is contained in:
parent
731c44d053
commit
05246ea0c7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user