mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
Plane: Option to trig by distance only when in AUTO mode
This commit is contained in:
parent
e7a1ceca4c
commit
1d27e21d83
@ -295,6 +295,9 @@ void Plane::set_mode(enum FlightMode mode, mode_reason_t reason)
|
|||||||
#if FRSKY_TELEM_ENABLED == ENABLED
|
#if FRSKY_TELEM_ENABLED == ENABLED
|
||||||
frsky_telemetry.update_control_mode(control_mode);
|
frsky_telemetry.update_control_mode(control_mode);
|
||||||
#endif
|
#endif
|
||||||
|
#if CAMERA == ENABLED
|
||||||
|
camera.set_is_auto_mode(control_mode == AUTO);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (previous_mode == AUTOTUNE && control_mode != AUTOTUNE) {
|
if (previous_mode == AUTOTUNE && control_mode != AUTOTUNE) {
|
||||||
// restore last gains
|
// restore last gains
|
||||||
|
Loading…
Reference in New Issue
Block a user