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:
parent
ae62f46958
commit
6c1cb60784
5 changed files with 15 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue