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:
parent
4e44cf62a2
commit
ac94147589
3 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue