mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 01:03:59 -04:00
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);
|
AP_Param::setup_object_defaults(this, var_info);
|
||||||
|
|
||||||
// calculate loiter leash
|
// initialise leash lengths
|
||||||
|
calculate_wp_leash_length(true);
|
||||||
calculate_loiter_leash_length();
|
calculate_loiter_leash_length();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user