Class SampleCltuGenerator

java.lang.Object
org.yamcs.tctm.ccsds.error.CltuGenerator
org.yamcs.examples.ccsdsframes.SampleCltuGenerator

public class SampleCltuGenerator extends CltuGenerator
Implements a CLTU generator that pads the CLTU to a multiple of a specified size. Note that the result is not a valid CCSDS TC CLTU. This processing is for example purposes only.

The randomization option is ignored.

  • Constructor Details

    • SampleCltuGenerator

      public SampleCltuGenerator()
    • SampleCltuGenerator

      public SampleCltuGenerator(YConfiguration config)
  • 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