diff --git a/libraries/AC_WPNav/AC_WPNav.cpp b/libraries/AC_WPNav/AC_WPNav.cpp index 1e827eb60f..43344eb336 100644 --- a/libraries/AC_WPNav/AC_WPNav.cpp +++ b/libraries/AC_WPNav/AC_WPNav.cpp @@ -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(); }