FUTABA_SBUS icon indicating copy to clipboard operation
FUTABA_SBUS copied to clipboard

Issue with output of more than 8chs in S.BUS stream

Open soler2000 opened this issue 7 years ago • 0 comments

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++;
  }
}`

soler2000 avatar Mar 14 '17 19:03 soler2000