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

cleaned up cliMotor(), added MSP_SET_MOTORS and enabled CAP_DYNBALANCE so the motors can be controlled from GUI

This commit is contained in:
dongie 2013-11-02 15:09:46 +09:00
parent d7b99e7938
commit bd8b1a1c8f
4 changed files with 45 additions and 23 deletions

View file

@ -211,11 +211,15 @@ void mixerInit(void)
}
}
}
mixerResetMotors();
}
void mixerResetMotors(void)
{
int i;
// set disarmed motor values
for (i = 0; i < MAX_MOTORS; i++) {
for (i = 0; i < MAX_MOTORS; i++)
motor_disarmed[i] = feature(FEATURE_3D) ? mcfg.neutral3d : mcfg.mincommand;
}
}
void mixerLoadMix(int index)