Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalratnam6 committed Jan 15, 2025
1 parent 15f054b commit e3ed306
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package org.yamcs.tctm.ccsds.error;

import org.yamcs.logging.Log;
import org.yamcs.security.encryption.SymmetricEncryption;
import org.yamcs.tctm.ccsds.Randomizer;
import org.yamcs.utils.ByteArrayUtils;

public class Ldpc64CltuGenerator extends CltuGenerator {
private static final Log log = new Log(Ldpc64CltuGenerator.class);

static public final byte[] CCSDS_START_SEQ = { 0x03, 0x47, 0x76, (byte) 0xC7, 0x27, 0x28, (byte) 0x95,
(byte) 0xB0 };
static public final byte[] CCSDS_TAIL_SEQ = { 0x55, 0x55, 0x55, 0x56, (byte) 0xAA, (byte) 0xAA, (byte) 0xAA,
Expand Down Expand Up @@ -48,7 +52,12 @@ public byte[] makeCltu(byte[] frameData, boolean randomize) {
encData[outOffset + d + i] = 0x55;
}
Ldpc64Encoder.encode(encData, outOffset, encData, outOffset + 8);
Randomizer.randomizeTc(encData, outOffset, 16);
// Randomizer.randomizeTc(encData, outOffset, 16);

boolean is64QAM = true;
MyCltuGenerator randomizer = new MyCltuGenerator(is64QAM);
encData = randomizer.randomize(encData);

outOffset += 16;
}
if (tailSeq.length > 0) { // tail sequence
Expand Down

0 comments on commit e3ed306

Please sign in to comment.