1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Scheduled motor refresh rate

This commit is contained in:
borisbstyle 2016-02-28 20:23:30 +01:00
parent 10b629c736
commit 6e96adff0d
13 changed files with 36 additions and 55 deletions

View file

@ -633,7 +633,7 @@ void writeServos(void)
}
#endif
void writeMotors(uint8_t useMotorPwmRate)
void writeMotors(void)
{
uint8_t i;
@ -641,7 +641,7 @@ void writeMotors(uint8_t useMotorPwmRate)
pwmWriteMotor(i, motor[i]);
if (feature(FEATURE_ONESHOT125) && useMotorPwmRate) {
if (feature(FEATURE_ONESHOT125)) {
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(0);
writeMotors();
}
void stopMotors(void)