mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Improved the naming of the digital idle offset getter.
This commit is contained in:
parent
9aae36b5e5
commit
3d7ac0dc6b
7 changed files with 16 additions and 13 deletions
|
@ -396,11 +396,6 @@ static void mixerConfigureOutput(void)
|
|||
}
|
||||
#endif // USE_QUAD_MIXER_ONLY
|
||||
|
||||
float getDynamicIdleOffset(void)
|
||||
{
|
||||
return motorConfig()->digitalIdleOffsetValue * 0.0001f * PWM_RANGE;
|
||||
}
|
||||
|
||||
void mixerInit(mixerMode_e mixerMode)
|
||||
{
|
||||
currentMixerMode = mixerMode;
|
||||
|
@ -415,7 +410,7 @@ void mixerInit(mixerMode_e mixerMode)
|
|||
#endif
|
||||
|
||||
#ifdef USE_DYN_IDLE
|
||||
mixerRuntime.idleThrottleOffset = getDynamicIdleOffset();
|
||||
mixerRuntime.idleThrottleOffset = getDigitalIdleOffset(motorConfig()) * PWM_RANGE;
|
||||
#endif
|
||||
|
||||
mixerConfigureOutput();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue