mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
turtlemode 3d fix
This commit is contained in:
parent
bb79830f03
commit
c8bf35ec4d
1 changed files with 6 additions and 2 deletions
|
@ -275,10 +275,14 @@ void tryArm(void)
|
||||||
|
|
||||||
if (!IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
|
if (!IS_RC_MODE_ACTIVE(BOXFLIPOVERAFTERCRASH)) {
|
||||||
flipOverAfterCrashMode = false;
|
flipOverAfterCrashMode = false;
|
||||||
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_NORMAL);
|
if (!feature(FEATURE_3D)) {
|
||||||
|
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_NORMAL);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
flipOverAfterCrashMode = true;
|
flipOverAfterCrashMode = true;
|
||||||
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
|
if (!feature(FEATURE_3D)) {
|
||||||
|
pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), DSHOT_CMD_SPIN_DIRECTION_REVERSED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pwmEnableMotors();
|
pwmEnableMotors();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue