We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96772e commit fb8f4f8Copy full SHA for fb8f4f8
libraries/AP_UAVCAN/AP_UAVCAN.cpp
@@ -460,7 +460,7 @@ void AP_UAVCAN::do_cyclic(void)
460
// find out how many esc we have enabled and if they are active at all
461
for (uint8_t i = 0; i < UAVCAN_RCO_NUMBER; i++) {
462
if ((((uint32_t) 1) << i) & _esc_bm) {
463
- max_esc_num = i;
+ max_esc_num = i + 1;
464
if (_rco_conf[i].active) {
465
active_esc_num++;
466
}
0 commit comments