mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Detach midrc (input) from servo center (output).
This fixes incorrect servo center position when midrc was not 1500. Most likely only experienced by futaba plane or servo/tilt users.
This commit is contained in:
parent
f4ec9a2c65
commit
a2b232e805
6 changed files with 10 additions and 5 deletions
|
@ -305,7 +305,7 @@ void init(void)
|
|||
pwm_params.idlePulse = masterConfig.flight3DConfig.neutral3d;
|
||||
if (pwm_params.motorPwmRate > 500)
|
||||
pwm_params.idlePulse = 0; // brushed motors
|
||||
pwm_params.servoCenterPulse = masterConfig.rxConfig.midrc;
|
||||
pwm_params.servoCenterPulse = masterConfig.escAndServoConfig.servoCenterPulse;
|
||||
|
||||
pwmRxInit(masterConfig.inputFilteringMode);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue