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:
parent
279d515e59
commit
952afd296e
@ -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…
Reference in New Issue
Block a user