* S.Port: drop a radio packet when the downlink buffer is full
SportQueue() wrote the stuffed packet without checking for room: a radio
pushing faster than the RF link drains (8 bytes per frame) wrapped the
64-byte SportData ring over the bytes not sent yet, and the receivers got
broken S.Port frames. Now the whole new packet is dropped when it doesn't
fit (stuffed length 9 + 1 per 7D/7E byte). The buffer low flag is set as
before, and also on a drop.
* S.Port: report the downlink buffer state once, also when it has room
The buffer low flag was cleared silently, so the radio only learnt at
the next periodic status (up to 500 ms) and held its packets with the
buffer empty: 442 B/s instead of ~1150 B/s with the flag honoured (4-in-1
and MPM v2 benches). Send the status as soon as the flag clears. While
the flag is set, the status is no longer forced again on every packet:
only when the flag gets set, the periodic status repeats it.
---------
Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
FrSkyX_seq_sport() (SPORT_SEND) stored the outgoing bytes at
payload[i-start+2], i.e. payload[4] to payload[11] for the 8 bytes of
an LBT packet: up to 4 bytes past each frame's 8-byte payload (into the
next frame's count and payload, past the array for frame 3). The
retransmits sent payload[i] and payload[i-start+2], bytes from beyond
the frame. All three now use payload[i-start-2] (0 to 7).
* Initial Version
* Bugfix and change of the handling of the RX Num.
If RX Num is 63, write a finetune value of 127 to the EEPROM.
A real finetune value of 127 means, the frequency of module is out of range and
the module should be replaced. This way the clone mode should not get unwanted
active by a module with a frequency drift arround 63.
Rewrite of the FrSkyX code to support both v1 and v2.1.0 with FCC and LBT.
FrSky v1 accessible as usual
FrSky v2.1.0 accessible through the protocol 64=FrSkyX2 with the same subprotocols as v1
The LBT feature is now fully implemented on the TX and turned on for both v1 LBT and v2.1.0 LBT.
For v2.1.0, to access the bind functions Telem=on/off, CH1-8/9-16 and bidirectional SPort (SxR setup for example), you need to update OpenTX to the latest 2.3.8 nightly (not available yet).