Browse Source

Plane: soaring: No action if in landing sequence.

gps-1.3.1
Samuel Tabor 4 years ago committed by Andrew Tridgell
parent
commit
23f6f38390
  1. 4
      ArduPlane/soaring.cpp

4
ArduPlane/soaring.cpp

@ -11,7 +11,9 @@ void Plane::update_soaring() { @@ -11,7 +11,9 @@ void Plane::update_soaring() {
// Check if soaring is active. Also sets throttle suppressed
// status on active state changes.
plane.g2.soaring_controller.update_active_state();
bool override_disable = mission.get_in_landing_sequence_flag();
plane.g2.soaring_controller.update_active_state(override_disable);
if (!g2.soaring_controller.is_active()) {
return;

Loading…
Cancel
Save