Package org.yamcs.simulator.pus
Class PusTmPacket
java.lang.Object
org.yamcs.tctm.CcsdsPacket
org.yamcs.simulator.SimulatorCcsdsPacket
org.yamcs.simulator.pus.PusTmPacket
TM packets according to PUS standard
ECSS-E-ST-70-41C 15 April 2016
Secondary header (16 bytes) version number - 4 bits spacecraft time reference status - 4 bits service type - 8 bits message subtype - 8 bits message type counter - 16 bits destination Id - 16 bits time - variable size but we use 9 bytes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static HashMap<Integer,
AtomicInteger> static final int
static final int
Fields inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
seqMap
Fields inherited from class org.yamcs.tctm.CcsdsPacket
bb
-
Constructor Summary
ConstructorsConstructorDescriptionPusTmPacket
(byte[] packet) PusTmPacket
(int apid, int userDataLength, int type, int subtype) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected static int
getCount
(int apid) void
setSubtype
(int subtype) void
setType
(int type) Methods inherited from class org.yamcs.simulator.SimulatorCcsdsPacket
getSeq
Methods inherited from class org.yamcs.tctm.CcsdsPacket
appendBinaryData, getAPID, getAPID, getAPID, getByteBuffer, getBytes, getCccsdsPacketLength, getCccsdsPacketLength, getCccsdsPacketLength, getChecksumIndicator, getChecksumIndicator, getCoarseTime, getLength, getSecondaryHeaderFlag, getSecondaryHeaderFlag, getSequenceCount, getSequenceCount, getSequenceCount, getTimeId, setAPID, setCccsdsPacketLength, setHeader, setSequenceCount, toString
-
Field Details
-
SH_OFFSET
public static final int SH_OFFSET- See Also:
-
DATA_OFFSET
public static final int DATA_OFFSET- See Also:
-
countMap
-
-
Constructor Details
-
PusTmPacket
public PusTmPacket(byte[] packet) -
PusTmPacket
public PusTmPacket(int apid, int userDataLength, int type, int subtype)
-
-
Method Details
-
setType
public void setType(int type) -
setSubtype
public void setSubtype(int subtype) -
getUserDataBuffer
- Specified by:
getUserDataBuffer
in classSimulatorCcsdsPacket
-
fillChecksum
protected void fillChecksum()- Specified by:
fillChecksum
in classSimulatorCcsdsPacket
-
getCount
protected static int getCount(int apid)
-