Using Calibrators to Support float16

16 views
Skip to first unread message

Mm

unread,
Jun 30, 2025, 6:24:20 AMJun 30
to yamcs
Hello all, 

I'm currently trying to include four parameters in my Yamcs XTCE file which are float values that I want to represent using the 16-bit IEEE 754 (float16) format for transmission.

Since Yamcs doesn’t support float16 encoding natively, I’m exploring whether it’s possible to use calibrators to bridge this gap. Specifically, I want to:

  • Store the raw value as a 16-bit unsigned integer.

  • Use a calibrator to decode the raw 16-bit value into a float.

However, I'm not sure how to do it. I would appreciate any examples/guidance.

Nicolae Mihalache

unread,
Jun 30, 2025, 8:57:30 AMJun 30
to ya...@googlegroups.com
I guess you could use a calibrator but the correct thing to do is to decode data directly as float.

You can implement your own AbstractDataDecoder. There are a few examples in Yamcs; basically you have to implement one method:

Value extractRaw(DataEncoding de, ContainerProcessingContext pcontext, BitBuffer buffer) {
}







--
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/0ad611e3-6d6c-44cd-855c-60191df30679n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages