From e1aaea083406917d09f82822989d179cc7204cdc Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 8 Dec 2020 14:07:41 +0900 Subject: [PATCH] Copter: pre-arm check of FS_GCS_ENABLE=2 --- ArduCopter/AP_Arming.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArduCopter/AP_Arming.cpp b/ArduCopter/AP_Arming.cpp index d61d0d24f7..31f970808e 100644 --- a/ArduCopter/AP_Arming.cpp +++ b/ArduCopter/AP_Arming.cpp @@ -159,6 +159,10 @@ bool AP_Arming_Copter::parameter_checks(bool display_failure) return false; } } + if (copter.g.failsafe_gcs == FS_GCS_ENABLED_CONTINUE_MISSION) { + // FS_GCS_ENABLE == 2 has been removed + check_failed(ARMING_CHECK_PARAMETERS, display_failure, "FS_GCS_ENABLE=2 removed, see FS_OPTIONS"); + } // lean angle parameter check if (copter.aparm.angle_max < 1000 || copter.aparm.angle_max > 8000) {