From 1d27e21d8335cb24b7aca0ac6ccff6e892267416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kjellstrup?= Date: Tue, 24 Oct 2017 12:45:09 +0200 Subject: [PATCH] Plane: Option to trig by distance only when in AUTO mode --- ArduPlane/system.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index ad2fd78326..cfdd28aab3 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -295,7 +295,10 @@ void Plane::set_mode(enum FlightMode mode, mode_reason_t reason) #if FRSKY_TELEM_ENABLED == ENABLED frsky_telemetry.update_control_mode(control_mode); #endif - +#if CAMERA == ENABLED + camera.set_is_auto_mode(control_mode == AUTO); +#endif + if (previous_mode == AUTOTUNE && control_mode != AUTOTUNE) { // restore last gains autotune_restore();