FUTABA_SBUS
FUTABA_SBUS copied to clipboard
Issue with output of more than 8chs in S.BUS stream
I believe that there is an issue with this part of code, on line 90 or 91 in FUTABA_SBUS.cpp. I think this is preventing Ch 9 onwards from output in the s.bus stream
` // store servo data for (i=0; i<176; i++) { if (servos[ch] & (1<<bit_in_servo)) { sbusData[byte_in_sbus] |= (1<<bit_in_sbus); } bit_in_sbus++; bit_in_servo++;
if (bit_in_sbus == 8) {
bit_in_sbus =0;
byte_in_sbus++;
}
if (bit_in_servo == 11) {
bit_in_servo =0;
ch++;
}
}`