Package org.yamcs.pus
Class PusCommandPostprocessor
java.lang.Object
org.yamcs.tctm.AbstractCommandPostProcessor
org.yamcs.pus.PusCommandPostprocessor
- All Implemented Interfaces:
CommandPostprocessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final CommandOptionScheduling group to associate the command with.static final CommandOptionScheduling group to associate the command with.static final CommandOptionOrbit angle (degrees, 0-360) of the position tag to insert the command at.static final CommandOptionOrbit number of the position tag to insert the command at (ST[22] position-based scheduling).static final CommandOptionOnly registered when thepus11block is present in the post-processor configuration - a link that doesn't declare support for PUS 11 scheduling doesn't offer this option (keeps it from cluttering command forms on links that only support PUS 22 scheduling, or neither).static final CommandOptionSub-schedule to insert the command into.static final CommandOptionSub-schedule to insert the command into.protected CcsdsSeqCountFillerprotected CucTimeEncoderFields inherited from class org.yamcs.tctm.AbstractCommandPostProcessor
commandHistoryPublisher, log, timeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the size of the binary packet for this command.voidinit(String yamcsInstance, YConfiguration config, Link link) Called to initialise the postprocessor.byte[]processes the command and returns the binary buffer.Methods inherited from class org.yamcs.tctm.AbstractCommandPostProcessor
failCommand, setCommandHistoryPublisherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.tctm.CommandPostprocessor
init
-
Field Details
-
CCSDS_SEQCOUNT_PARA_NAME
- See Also:
-
OPTION_SCHEDULE_TIME
Only registered when thepus11block is present in the post-processor configuration - a link that doesn't declare support for PUS 11 scheduling doesn't offer this option (keeps it from cluttering command forms on links that only support PUS 22 scheduling, or neither). -
OPTION_SUB_SCHEDULE_ID
Sub-schedule to insert the command into. Only registered (and only written into the TC(11,4)) when thepus11 -> subScheduleIdblock is present in the post-processor configuration. -
OPTION_GROUP_ID
Scheduling group to associate the command with. Only registered (and only written into the TC(11,4)) when thepus11 -> groupIdblock is present in the post-processor configuration. -
OPTION_ORBIT_NUMBER
Orbit number of the position tag to insert the command at (ST[22] position-based scheduling). Setting this (together withOPTION_ORBIT_ANGLE) wraps the command into a TC(22,4). Only registered when thepus22block is present in the post-processor configuration. -
OPTION_ORBIT_ANGLE
Orbit angle (degrees, 0-360) of the position tag to insert the command at. Its mere presence is what triggers wrapping the command into a TC(22,4), exactly likeOPTION_SCHEDULE_TIMEtriggers a TC(11,4). -
OPTION_SUB_SCHEDULE_ID_22
Sub-schedule to insert the command into. Only registered (and only written into the TC(22,4)) when thepus22 -> subScheduleIdblock is present in the post-processor configuration. -
OPTION_GROUP_ID_22
Scheduling group to associate the command with. Only registered (and only written into the TC(22,4)) when thepus22 -> groupIdblock is present in the post-processor configuration. -
seqFiller
-
timeEncoder
-
-
Constructor Details
-
PusCommandPostprocessor
public PusCommandPostprocessor()
-
-
Method Details
-
init
Description copied from interface:CommandPostprocessorCalled to initialise the postprocessor. The link parameter can be used to register link actions.- Specified by:
initin interfaceCommandPostprocessor- Overrides:
initin classAbstractCommandPostProcessor
-
process
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 post-processor is expected to fail the command in the command history (also filling in an appropriate reason)- Returns:
- the processed command or null if the command cannot be processed
-
getBinaryLength
Description copied from interface:CommandPostprocessorReturn the size of the binary packet for this command.This is required in the frame links which bundle multiple commands together to know if the command will fit into the frame before post-processing it.
- Returns:
- the size of the binary packet which the method
CommandPostprocessor.process(PreparedCommand)will return.
-