What is the design consideration done in the ChData in fprime-gds? #2123
Replies: 1 comment 1 reply
-
I think the intent here is that array DelayArray = [3] U32 format "{} ms"
[...]
telemetry latestDelays: DelayArray format "Delays for the last 3 readings are: {}" By retrieving Now maybe we would want to keep the types intact if the array were to not define a format string? I'm not sure if that's easily doable, since it's noted in the formatted_value property docs that elements will be casted to a string. |
Beta Was this translation helpful? Give feedback.
-
In
ChData
infprime-gds
there is the following method:The output of this method is a single value or a dictionary depending on the type of
val_obj
. Ifval_obj
is a basic type, for exampleU8
orF32
, the method return anint
or afloat
. If val_obj is an array ofU8
the method return a dictionary containing an array but where each value is cast to string. The cast is done insideSerializableType.formatted_val
.The question is why the output is different depending on the type of
val_obj
? Should not always be returned output casted to string or always return the original value?Beta Was this translation helpful? Give feedback.
All reactions