1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

Added motor output limiting per profile.

This commit is contained in:
mikeller 2019-01-27 19:10:05 +13:00
parent 4bff464b92
commit a3cf7e0cf7
5 changed files with 28 additions and 11 deletions

View file

@ -208,6 +208,10 @@ static void validateAndFixConfig(void)
}
#endif
if (currentPidProfile->motor_output_limit > 100 || currentPidProfile->motor_output_limit == 0) {
currentPidProfile->motor_output_limit = 100;
}
if (motorConfig()->dev.motorPwmProtocol == PWM_TYPE_BRUSHED) {
featureDisable(FEATURE_3D);