Skip to content

Commit

Permalink
AP_HAL_ChibiOS: fix 3D-DShot output
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkix committed Mar 25, 2024
1 parent 1eb2a30 commit 7ae2a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/RCOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ void RCOutput::dshot_send(pwm_group &group, rcout_timer_t cycle_start_us, rcout_
continue;
}

const uint32_t chan_mask = (1U<<chan);
const uint32_t chan_mask = (1U<<(chan+chan_offset));

pwm = constrain_int16(pwm, 1000, 2000);
uint16_t value = MIN(2 * (pwm - 1000), 1999);
Expand Down

0 comments on commit 7ae2a71

Please sign in to comment.