Browse Source

Copter: initialise waypoint leash length

Without this initialisation the first RTL could be too aggressive as it
tries to stop too suddenly
mission-4.1.18
Randy Mackay 11 years ago
parent
commit
952afd296e
  1. 3
      libraries/AC_WPNav/AC_WPNav.cpp

3
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_ @@ -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();
}

Loading…
Cancel
Save