* HoTT: compute the hop table from the hop value (-1 KB)
The 16 hop tables are generated from the 16 bit value sent in packet[0..1]:
the C library rand() LCG (low 16 bits: x = x * 0x4E6D + 0x3039) seeded with
it drives forward Fisher-Yates shuffles, first of the order of the 5 bands of
15 channels, then of the channels of each band, hop i being in the band at
position i%5. This gives back the 16 tables bit for bit, and for any seed a
75 channel permutation with the same band structure.
* XN297 emu: compute the CRC xorout instead of the 4 tables
The XN297 CRC is CRC-16/CCITT with init 0xFFFF and xorout 0xFFFF over the
unscrambled address, pcf and payload, sent scrambled. The emulation computes
it from 0xB5D2 over the bits as sent, so the xorout for a CRC over n bits is
CRC(init 0xFFFF^0xB5D2) of n scramble (or zero) bits, xor 0xFFFF, xor the 16
scramble bits at the CRC. The scramble bits come from the LFSR behind
xn297_scramble[] (1110001, then s[i] = s[i-7] ^ s[i-3]), which also covers
the last enhanced entries, past the end of that table. It is the generator
Goebish gave for the scramble sequence in a comment on
https://mcumix.blogspot.com/2016/07/reverse-engineering-24ghz-rf-chip-xn297.html
(seed 0x71, feedback bit 6 ^ bit 2, MSB first).
All the entries of the 4 tables are given back but two: entry 0 (3 byte
address, no payload) was a 0 placeholder, and scrambled entry 1 (3 byte
address, 1 byte payload) was 0x3448 where the formula gives 0xE348.
* [Codex assisted] RadioLink / DumboRC command packages bridge
Pass "special" packages to and from the module
Allows to replicate "Set Failsafe", "Set Gyro Settings" and "Set Gyro Endpoints" from DDF-350
* RadioLink / DumboRC command packages TX / RX
* RadioLink / DumboRC Helper script channel names
Has max 10 channels
Has no failsafe
Older X series have gyro sense fixed to CH8, also can be used as regular channel
* [Codex] DumboRC P Series settings script
Add script that mimics interaction between DumboRC DDF-350 transmitter and P Series receivers
* [Codex assisted] Split P series into separate subprotocol
Split command exchange into separate subprotocol
Update protocol documentation
* [Codex] Improve LUA script
Clean up, better event handling