In the last two months I have been helping somebody with the communication between a RC receiver and an Arduino (Mega). It was a bit of a battle because the original code that was provided battled with synchronisation (and I realised that (too) late
). I've written a library (currently part of the sketch) for it and have some questions to which I have not been able to find answers (yet).
I do not have an RC receiver so my receiver is a simulation using a Leonardo. The library seems to do the job in the life environment (which is 10,000 km away
)
Questions
- The original code did send a reply back to the RC receiver (just the first channel); current approach in the Mega does not do that and the question is if this is necessary? I have also seen GitHub - bolderflight/sbus: Arduino and CMake library for communicating with SBUS receivers and servos. where, in the example, it is part op the sketch and not the library so I assume that it's not strictly necessary as part of the library.
- The second question is about the use of lost and failsafe. I do understand that lost indicates that communication between RC transmitter and RC receiver was lost and that failsafe indicates that the RC receiver switches to a safe mode (possibly after a prolonged time of lost communication). Question is what 'failsafe' exactly does in the RC receiver? I assume that 'lost' will simply result in a repeat of the last valid data but assumption is the mother of all evil.
If anybody can shine some light on this, it would be appreciated.
Thanks in advance.