mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +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
|
@ -633,7 +633,7 @@ void writeServos(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
void writeMotors(void)
|
||||
void writeMotors(uint8_t useMotorPwmRate)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
|
@ -641,7 +641,7 @@ void writeMotors(void)
|
|||
pwmWriteMotor(i, motor[i]);
|
||||
|
||||
|
||||
if (feature(FEATURE_ONESHOT125)) {
|
||||
if (feature(FEATURE_ONESHOT125) && useMotorPwmRate) {
|
||||
pwmCompleteOneshotMotorUpdate(motorCount);
|
||||
}
|
||||
}
|
||||
|
@ -653,7 +653,7 @@ void writeAllMotors(int16_t mc)
|
|||
// Sends commands to all motors
|
||||
for (i = 0; i < motorCount; i++)
|
||||
motor[i] = mc;
|
||||
writeMotors();
|
||||
writeMotors(0);
|
||||
}
|
||||
|
||||
void stopMotors(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue