mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Change use_fast_pwm to forced_motor_pwm // New default fixed PWM rates
This commit is contained in:
parent
a5278740bd
commit
977fec408a
11 changed files with 24 additions and 20 deletions
|
@ -310,7 +310,7 @@ void init(void)
|
|||
#endif
|
||||
|
||||
pwm_params.useOneshot = feature(FEATURE_ONESHOT125);
|
||||
pwm_params.useFastPWM = masterConfig.use_fast_pwm ? true : false;
|
||||
pwm_params.useFixedPWM = masterConfig.force_motor_pwm_rate ? true : false;
|
||||
if (masterConfig.use_oneshot42) {
|
||||
pwm_params.useOneshot42 = masterConfig.use_oneshot42 ? true : false;
|
||||
masterConfig.use_multiShot = false;
|
||||
|
@ -321,7 +321,7 @@ void init(void)
|
|||
pwm_params.idlePulse = masterConfig.escAndServoConfig.mincommand;
|
||||
if (feature(FEATURE_3D))
|
||||
pwm_params.idlePulse = masterConfig.flight3DConfig.neutral3d;
|
||||
if (pwm_params.motorPwmRate > 500 && !masterConfig.use_fast_pwm)
|
||||
if (pwm_params.motorPwmRate > 500 && !masterConfig.force_motor_pwm_rate)
|
||||
pwm_params.idlePulse = 0; // brushed motors
|
||||
#ifdef CC3D
|
||||
pwm_params.useBuzzerP6 = masterConfig.use_buzzer_p6 ? true : false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue