Skip to content

Add const -0.5f while decoding CCSDS? #411

Discussion options

You must be logged in to vote

Hi Andrey,

The lines

self.char2float0 = blocks.char_to_float(1, 1)
self.addconst0 = blocks.add_const_ff(-0.5)

implement a unipolar (0's & 1's) char to bipolar (1's and -1's) float transformation. This is only needed because the Reed-Solomon deframer (which is what comes after) expects bipolar floats, since that's the input format for all the deframers. The Reed-Solomon deframer works with hard symbols, so it immediately uses Binary Slicer to convert back to unipolar char. This is a waste of resources. An improved version of these could have a special input mode for the Reed-Solomon deframer that uses unipolar chars (omitting the Binary Slicer), and hence we wouldn't need the two lines abo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dernasherbrezon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants