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:
parent
4bff464b92
commit
a3cf7e0cf7
5 changed files with 28 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue