1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

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.
This commit is contained in:
Bruce Luckcuck 2018-02-15 15:53:07 -05:00
parent 9da7416c30
commit 1b5e52d87b

View file

@ -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);
}