1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Have servos output midrc at startup instead of 1ms pulse (full deflection)

This commit is contained in:
DTF UHF 2014-02-14 15:15:38 -05:00
parent 4e44cf62a2
commit ac94147589
3 changed files with 3 additions and 1 deletions

View file

@ -376,7 +376,7 @@ bool pwmInit(drv_pwm_config_t *init)
motors[numMotors++] = pwmOutConfig(port, mhz, hz / init->motorPwmRate, init->idlePulse);
} else if (mask & TYPE_S) {
servos[numServos++] = pwmOutConfig(port, PWM_TIMER_MHZ, 1000000 / init->servoPwmRate, PULSE_1MS);
servos[numServos++] = pwmOutConfig(port, PWM_TIMER_MHZ, 1000000 / init->servoPwmRate, init->servoCenterPulse);
}
}