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:
parent
d7b99e7938
commit
bd8b1a1c8f
4 changed files with 45 additions and 23 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue