1
0
Fork 0
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:
borisbstyle 2016-02-28 01:16:59 +01:00
parent a5278740bd
commit 977fec408a
11 changed files with 24 additions and 20 deletions

View file

@ -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)