Browse Source

ArduCopter: Loiter Timer should have been set when the approach altitude was set. Previously, land had to be enabled before auto approach would work.

mission-4.1.18
Adam M Rivera 13 years ago
parent
commit
dadc7d5a7d
  1. 3
      ArduCopter/ArduCopter.pde

3
ArduCopter/ArduCopter.pde

@ -1824,7 +1824,8 @@ static void update_navigation() @@ -1824,7 +1824,8 @@ static void update_navigation()
next_WP.lat = home.lat;
next_WP.lng = home.lng;
if(g.rtl_land_enabled || failsafe)
// If land is enabled OR failsafe OR auto approach altitude is set
if(g.rtl_land_enabled || failsafe || g.rtl_approach_alt >= 1)
loiter_timer = millis();
else
loiter_timer = 0;

Loading…
Cancel
Save