Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/main/flight/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,17 @@ void FAST_CODE mixTable()

motorValueWhenStopped = getReversibleMotorsThrottleDeadband();
mixerThrottleCommand = constrain(rcCommand[THROTTLE], throttleRangeMin, throttleRangeMax);

#ifdef USE_DSHOT
if(isMotorProtocolDigital() && feature(FEATURE_REVERSIBLE_MOTORS) && reversibleMotorsThrottleState == MOTOR_DIRECTION_BACKWARD) {
/*
* We need to start the throttle output from stick input to start in the middle of the stick at the low and.
* Without this, it's starting at the high side.
*/
int throttleDistanceToMax = throttleRangeMax - rcCommand[THROTTLE];
mixerThrottleCommand = throttleRangeMin + throttleDistanceToMax;
}
#endif
} else {
mixerThrottleCommand = rcCommand[THROTTLE];
throttleRangeMin = throttleIdleValue;
Expand Down