Skip to content

Commit

Permalink
Copter: initialize the land controller when starting the land phase o…
Browse files Browse the repository at this point in the history
…f an AUTO RTL

* ensures static variables for the landing ramp will be set properly on every landing
  • Loading branch information
wsilva32 committed Oct 3, 2016
1 parent 313da4c commit ddbfc3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ArduCopter/control_auto.pde
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ static void auto_land_start(const Vector3f& destination)
{
auto_mode = Auto_Land;

// Setup land controller
land_init(false);

// initialise loiter target destination
wp_nav.init_loiter_target(destination);

Expand Down

0 comments on commit ddbfc3c

Please sign in to comment.