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

Sending SBUS packets on mega 2560 doesn't seem to work. #15

Closed
ErcBunny opened this issue Apr 12, 2019 · 1 comment
Closed

Sending SBUS packets on mega 2560 doesn't seem to work. #15

ErcBunny opened this issue Apr 12, 2019 · 1 comment

Comments

@ErcBunny
Copy link

I connected the TX pin of Serial1 to the base of transistor and the SBUS RX pin of my flight controller to the collector. And I tried to send SBUS packets to the FC by using the example sketch, which didn't work.

I tried to read the source code the "write" function and wrote the sketch below.

sketch_apr12a.zip

It did make a difference on the receiver setup page (apm, mission planner). I noticed that the value of each channel did change correspondingly when the value was changed in my sketch. Sadly I could never sent the desired values. I took note of what I wanted to send and the results.

900-1444
1000-1506
1024-1521
2000-2100
2046-2100
994-1502
1500-1818

And when I was using the F4 flight controller, it didn't seem to receive anything...

@daz
Copy link
Contributor

daz commented Apr 17, 2019

Fixed in #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants