Copter: initialise waypoint leash length

Without this initialisation the first RTL could be too aggressive as it
tries to stop too suddenly
This commit is contained in:
Randy Mackay 2013-12-12 16:23:37 +09:00
parent 279d515e59
commit 952afd296e

View File

@ -102,7 +102,8 @@ AC_WPNav::AC_WPNav(const AP_InertialNav* inav, const AP_AHRS* ahrs, APM_PI* pid_
{
AP_Param::setup_object_defaults(this, var_info);
// calculate loiter leash
// initialise leash lengths
calculate_wp_leash_length(true);
calculate_loiter_leash_length();
}