RCOutput: fix motor stopping with rev thrust and full throttle

This commit is contained in:
Michel Pastor 2021-10-20 23:41:55 +02:00 committed by Andrew Tridgell
parent e7a157283f
commit 876f478ae1
1 changed files with 1 additions and 1 deletions

View File

@ -1387,7 +1387,7 @@ void RCOutput::dshot_send(pwm_group &group, uint32_t time_out_us)
if (chan_mask & (_reversible_mask>>chan_offset)) {
// this is a DShot-3D output, map so that 1500 PWM is zero throttle reversed
if (value < 1000) {
value = 2000 - value;
value = 1999 - value;
} else if (value > 1000) {
value = value - 1000;
} else {