Closed tracernz closed 9 years ago
Can one of the admins verify this patch?
Please review the https://github.com/multiwii/baseflight/wiki/CodingStyle wiki. There are too many style violations to list here.
Yes, I can see a few now :(. I'll fix them up and commit a new revision when I've got time in the next couple of days.
PS. What are your thoughts on the hash defines(there isn't anything on this in the style guide) and the level of commenting?
Overall it looks OK. Is the half-duplex thing required for later telemetry? There's also the thing that you might be the one and only user of this for a very long time :)
Is the half-duplex thing required for later telemetry?
Yeah, should have covered that. It uses the tx pin for both directions. If I hadn't included it the rx pin would need to be used for now and then a change to the tx pin later when bidirectional communication is implemented which isn't ideal. One thing I did notice on a quick inspection is that the HoTT telemetry could possibly use it as well instead of requiring a diode to be inserted across the pins.. It's covered on page 597 of the STM32F100x reference manual if you're interested (http://www.st.com/web/en/resource/technical/document/reference_manual/CD00246267.pdf).
There's also the thing that you might be the one and only user of this for a very long time :)
This is true. I'll leave the decision whether to include this in the main distribution or not up to you but I'll continue developing it in my fork regardless :).
ok to test
I have written some initial code to support Jeti EX Bus receivers (EX Bus is Jeti's high speed serial rx protocol). The protocol spec is available at http://www.jetimodel.com/en/show-file/642/. Initially only RC channel data is supported but eventually (as time permits) I plan to add support for telemetry and Jetibox commands (to enable tuning of gains etc. from the tx). Please provide some feedback :).