- All Implemented Interfaces:
- CCSDS primary header - 6 bytes. Should be set according to CCSDS 133.0-B.
- function code - 1 byte
- checksum - 1 byte
This class sets the CCSDS sequence count and packet length in the primary CCSDS header and the checksum in the secondary CCSDS header.
The other parts of the header/packet are expected to be set by the command composition according to the Mission Database.
Note that prior to this patch the cFS would expect the checksum and the function code swapped on little endian systems. The configuration option swapChecksumFc can be used to realize this behaviour:
dataLinks: ... commandPostprocessorClassName: org.yamcs.tctm.cfs.CfsCommandPostprocessor commandPostprocessorArgs: swapChecksumFc: true
Method SummaryModifier and TypeMethodDescription
byteprocesses the command and returns the binary buffer.
voidsets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processpublic byte process
(PreparedCommand pc)Description copied from interface:
CommandPostprocessorprocesses the command and returns the binary buffer. Returns null if the command cannot be processed (e.g. its size does not correspond to what this processor expects). In this case the postprocessor is expected to fail the command in the command history (also filling in an appropiate reason)
setCommandHistoryPublisherpublic void setCommandHistoryPublisher
(CommandHistoryPublisher commandHistoryListener)Description copied from interface:
CommandPostprocessorsets the command history listener which can be used by the preprocessor to provide command history entries related to the command processed