Timestamp Precision Question - UDP Parameter Data Link

18 views
Skip to first unread message

Simon V

unread,
May 2, 2025, 10:54:52 AMMay 2
to yamcs
Hello,

I am currently sending JSONs to the UDP parameter data link, which contain ISO string timestamps for generation time.
In the UdpParameterDataLink.java code I notice that this generation time is stored in a long, then is passed into the ParameterValue object with setGenerationTime().

My question is: is my ISO timestamp saved with picosecond precision within YAMCS (as an Instant)? Or is the timestamp being rounded to millisecond precision? 

Thank you so much,
Simon

Nicolae Mihalache

unread,
May 2, 2025, 11:08:32 AMMay 2
to ya...@googlegroups.com
The generation time is rounded (or maybe truncated) to millisecond precision.

The picosecond resolution Instant is not used much in Yamcs. I think it is only used for the Earth Reception Time (ert) which is a timestamp sometimes offered by ground-stations recording the frame reception. 

When java will adopt value objects and classes (which will make the hres timestamp take 12 bytes instead of 28 bytes + dereference operation it takes now) then we may use it more widely.


nicolae


--
You received this message because you are subscribed to the Google Groups "yamcs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yamcs+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/yamcs/b7225b1f-6f5a-4590-b415-23f5d310d830n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages