From aab22d7dad882965f8f0069bed22b94d96ae3ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kjellstrup?= Date: Tue, 24 Oct 2017 12:44:46 +0200 Subject: [PATCH] Rover: Option to trig by distance only when in AUTO mode --- APMrover2/system.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/APMrover2/system.cpp b/APMrover2/system.cpp index e98f9b1ad3..2576564473 100644 --- a/APMrover2/system.cpp +++ b/APMrover2/system.cpp @@ -229,6 +229,9 @@ bool Rover::set_mode(Mode &new_mode, mode_reason_t reason) #if FRSKY_TELEM_ENABLED == ENABLED frsky_telemetry.update_control_mode(control_mode->mode_number()); #endif +#if CAMERA == ENABLED + camera.set_is_auto_mode(control_mode->mode_number() == AUTO); +#endif old_mode.exit();