(self, overhead=0.1)
Forward error correction (FEC) encoding

        Adds overhead through FEC encoding so that the message has
        redundancy. With that, the receiver can recover the original message
        even if parts of it are missing. The amount of data that can be missing
        depends on the number of overhead FEC chunks. The latter, in turn, is
        controlled by the overhead parameter.

        This function applies FEC encoding to the highest data container level
        available. Furthermore, it generates FEC chunks that completely fill
        the maximum Blocksat Packet payload. All chunks are of equal size and
        the last chunk is padded if necessary.

        Args:
            overhead : Percentage of the FEC chunks to add as overhead
                       (rounded up).
Forward error correction (FEC) encoding
Forward error correction ( FEC ) encoding
def fec_encode(self, overhead=0.1):
        """Forward error correction (FEC) encoding

        Adds overhead through FEC encoding so that the message has
        redundancy. With that, the receiver can recover the original message
        even if parts of it are missing. The amount of data that can be missing
        depends on the number of overhead FEC chunks. The latter, in turn, is
        controlled by the overhead parameter.

        This function applies FEC encoding to the highest data container level
        available. Furthermore, it generates FEC chunks that completely fill
        the maximum Blocksat Packet payload. All chunks are of equal size and
        the last chunk is padded if necessary.

        Args:
            overhead : Percentage of the FEC chunks to add as overhead
                       (rounded up).

        """
        fec = Fec(overhead)
        self.data['fec_encoded'] = fec.encode(self.get_data())
def fec_encode ( self , overhead = 0.1 ) : fec = Fec ( overhead ) self . data [ 'fec_encoded' ] = fec . encode ( self . get_data ( ) )