Package org.yamcs.simulator.pus
Class PusTime
- java.lang.Object
-
- org.yamcs.simulator.pus.PusTime
-
public class PusTime extends Object
PUS time used by the simulator is 4 bytes seconds and 4 bytessub-second The time is started at 0 when the simulator starts and drifts with a constant drift
-
-
Field Summary
Fields Modifier and Type Field Description static intLENGTH_BYTES
-
Constructor Summary
Constructors Constructor Description PusTime(int seconds, long fractionalTime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(ByteBuffer bb)static PusTimenow()StringtoString()
-
-
-
Field Detail
-
LENGTH_BYTES
public static final int LENGTH_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public void encode(ByteBuffer bb)
-
now
public static PusTime now()
-
-