Class BchCltuGenerator

java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
org.yamcs.tctm.ccsds.error.BchCltuGenerator

public class BchCltuGenerator extends CltuGenerator
Makes CLTUs from command transfer frames as per CCSDS 231.0-B-3 (TC SYNCHRONIZATION AND CHANNEL CODING)

Implements BCH encoder

  • Field Details

    • CCSDS_START_SEQ

      public static final byte[] CCSDS_START_SEQ
    • CCSDS_TAIL_SEQ

      public static final byte[] CCSDS_TAIL_SEQ
  • Constructor Details

    • BchCltuGenerator

      public BchCltuGenerator()
    • BchCltuGenerator

      public BchCltuGenerator(byte[] startSeq, byte[] tailSeq)
  • Method Details

    • makeCltu

      public byte[] makeCltu(byte[] data, boolean randomize)
      Description copied from class: CltuGenerator
      encode the data optionally randomizing it. Note that randomization is mandatory for the LDCP codec so that codec will throw an IllegalArgumentException if the argument is false.
      Specified by:
      makeCltu in class CltuGenerator
      Returns:
      - the encoded data