diff --git a/ArduCopter/crash_check.cpp b/ArduCopter/crash_check.cpp index 7bb3da1bb5..6383636f3c 100644 --- a/ArduCopter/crash_check.cpp +++ b/ArduCopter/crash_check.cpp @@ -42,7 +42,7 @@ void Copter::crash_check() } // return immediately if we are not in an angle stabilize flight mode or we are flipping - if (flightmode->disable_crash_check()) { + if (!flightmode->crash_check_enabled()) { crash_counter = 0; return; } @@ -273,7 +273,7 @@ void Copter::parachute_check() } // return immediately if we are not in an angle stabilize flight mode or we are flipping - if (flightmode->disable_crash_check()) { + if (!flightmode->crash_check_enabled()) { control_loss_count = 0; return; } diff --git a/ArduCopter/mode.h b/ArduCopter/mode.h index 68bf46adc8..3dde86df7d 100644 --- a/ArduCopter/mode.h +++ b/ArduCopter/mode.h @@ -128,7 +128,7 @@ public: virtual bool allows_save_trim() const { return false; } virtual bool allows_autotune() const { return false; } virtual bool allows_flip() const { return false; } - virtual bool disable_crash_check() const { return false; } + virtual bool crash_check_enabled() const { return true; } #if FRAME_CONFIG == HELI_FRAME virtual bool allows_inverted() const { return false; }; @@ -421,7 +421,7 @@ public: void air_mode_aux_changed(); bool allows_save_trim() const override { return true; } bool allows_flip() const override { return true; } - bool disable_crash_check() const override { return true; } + bool crash_check_enabled() const override { return false; } protected: @@ -913,7 +913,7 @@ public: bool has_manual_throttle() const override { return false; } bool allows_arming(AP_Arming::Method method) const override { return false; }; bool is_autopilot() const override { return false; } - bool disable_crash_check() const override { return true; } + bool crash_check_enabled() const override { return false; } protected: diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 67cdbf54e4..4e43d048bb 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -2441,8 +2441,6 @@ class TestSuite(ABC): "SIM_DRIFT_SPEED", "SIM_DRIFT_TIME", "SIM_EFI_TYPE", - "SIM_ENGINE_FAIL", - "SIM_ENGINE_MUL", "SIM_ESC_ARM_RPM", "SIM_FTOWESC_ENA", "SIM_FTOWESC_POW",