Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soler2000 opened this issue Mar 14, 2017 · 0 comments
Open

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

soler2000 opened this issue Mar 14, 2017 · 0 comments

Comments

@soler2000
Copy link

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++;
  }
}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant