Conversation
Without the reset, we don't notice if the radio is disconnected.
|
@qqqlab found the issue with IBUS - I need to reset the data available flag after reading it, otherwise we never notice if the radio is disconnected. |
|
Hold off on this ... still debugging ... |
|
@qqqlab life sucks ... IBUS failsafe. I have the FlySky i6 controller running the modded firmware and I'm finding out that setting its failsafe doesn't actually set the channel to the values set in the failsafe and the receiver just keeps sending the last values to the microcontroller when it loses connection to the receiver. It does change channels 9 thru 12 to > 1500 when normally they are 1500 when things are working. So I could just hardcode that, but I hate doing that as what if someone is actually using channel 9 or 12 . . . I might have to go figure out the bug in the FS-i6 firmware first. |
With the FS-i6 firmware from https://github.com/qba667/FlySkyI6, failsafe doesn't actually change channels 1-8, it continues sending the current values even on lost radio link. But channels 9-12 all become > 1500 when they are 1500 before losing radio link so hardcode checking channels 9-12 > 1500 for failsafe for radio link lost. Hopefully we are never in a situation where channel 9-12 are all > 1500 when radio link is lost...
Without the reset, we don't notice if the radio is disconnected.