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

Added BOXDSHOTREVERSE as a separate mode to BOX3DDISABLE.

This commit is contained in:
mikeller 2017-07-08 12:32:23 +12:00
parent b52b71319b
commit 282668edde
5 changed files with 16 additions and 10 deletions

View file

@ -220,9 +220,8 @@ void tryArm(void)
return;
}
#ifdef USE_DSHOT
if (!feature(FEATURE_3D)) {
//TODO: Use BOXDSHOTREVERSE here
if (!IS_RC_MODE_ACTIVE(BOX3DDISABLESWITCH)) {
if (isMotorProtocolDshot()) {
if (!IS_RC_MODE_ACTIVE(BOXDSHOTREVERSE)) {
reverseMotors = false;
for (unsigned index = 0; index < getMotorCount(); index++) {
pwmWriteDshotCommand(index, DSHOT_CMD_SPIN_DIRECTION_NORMAL);