Derandomise · Reed-Solomon · demux

CCSDS frames, repaired and sorted
On the laptop the CADUs are derandomised, Reed-Solomon corrected and sorted by virtual channel — MERSI to the image engine, everything (optionally) on to SatDump for the other instruments.
Frames the Reed-Solomon code cannot repair are not simply thrown away: a new concept recovers the usable part of them. On deliberately damaged test data that roughly halved the image error.
Repeated and missing frames are detected from the frame counter, so a lost frame never shifts the rest of a scan line.
Reed-Solomon (255, 223), interleave 4
Pseudo-random derandomiser