RCOutput: fix full throttle bug

This commit is contained in:
Michel Pastor 2021-10-03 18:44:15 +02:00 committed by Andrew Tridgell
parent 1377c1b78f
commit a9fed2f9bc
1 changed files with 1 additions and 1 deletions

View File

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