mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +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:
parent
9da7416c30
commit
1b5e52d87b
1 changed files with 3 additions and 0 deletions
|
@ -307,6 +307,9 @@ void tryArm(void)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
flipOverAfterCrashMode = true;
|
flipOverAfterCrashMode = true;
|
||||||
|
#ifdef USE_RUNAWAY_TAKEOFF
|
||||||
|
runawayTakeoffCheckDisabled = false;
|
||||||
|
#endif
|
||||||
if (!feature(FEATURE_3D)) {
|
if (!feature(FEATURE_3D)) {
|
||||||
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
|
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue