AC_WPNav: fix reporting of set_wp_destination failure

This commit is contained in:
Randy Mackay 2016-04-22 21:25:17 +09:00
parent 9fbfea951a
commit e23c869c5d

View File

@ -439,9 +439,7 @@ bool AC_WPNav::set_wp_destination(const Location_Class& destination)
}
// set target as vector from EKF origin
set_wp_destination(dest_neu, terr_alt);
return true;
return set_wp_destination(dest_neu, terr_alt);
}
/// set_wp_destination waypoint using position vector (distance from home in cm)