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

Added the dynamic idle throttle offset to the blackbox header to fix the motor output display.

This commit is contained in:
Michael Keller 2020-10-27 02:01:26 +01:00
parent ae62f46958
commit 6c1cb60784
5 changed files with 15 additions and 6 deletions

View file

@ -396,6 +396,11 @@ 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;
@ -410,7 +415,7 @@ void mixerInit(mixerMode_e mixerMode)
#endif
#ifdef USE_DYN_IDLE
mixerRuntime.idleThrottleOffset = motorConfig()->digitalIdleOffsetValue * 0.0001f;
mixerRuntime.idleThrottleOffset = getDynamicIdleOffset();
#endif
mixerConfigureOutput();