From 1b5e52d87b98ba7af5b6784f1d2228d0db59ad24 Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Thu, 15 Feb 2018 15:53:07 -0500 Subject: [PATCH] Reactivate Runaway Takeoff Prevention after using crash-flip Reset Runaway Takeoff Prevention so that on the next arming after crash-flip is used it will once again be active. The use-case is that the pilot may have broken props or other damage that could cause a runaway event. After successful takeoff the feature will deactivate for the remainder of the battery as before. --- src/main/fc/fc_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/fc/fc_core.c b/src/main/fc/fc_core.c index 34476e89d..a8157007a 100644 --- a/src/main/fc/fc_core.c +++ b/src/main/fc/fc_core.c @@ -307,6 +307,9 @@ void tryArm(void) } } else { flipOverAfterCrashMode = true; +#ifdef USE_RUNAWAY_TAKEOFF + runawayTakeoffCheckDisabled = false; +#endif if (!feature(FEATURE_3D)) { pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED); } -- 2.11.4.GIT