-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subscribe_json required for (some?) additional outputs instead of direct deserialisation with subscribe_value #1448
Comments
Just had a brief look, but do I see it correctly, that you subscribe to an |
Huh I'm a bit confused now, the behaviour you explained seems to be the case, but I assumed the semantics differently: The node has below additional output: last_calibration_corrections:
AdditionalOutput<Option<Corrections>, "last_calibration_corrections">, so I assumed that I need to have a |
It should be IIRC, there is the missing feature (some might call it a bug) that new cycles do not reset additional outputs to |
Aha now I understand what's going on! I'll change the node to remove the extra |
I encoutered this in #1447,
I'm subscribing to an
Option<calibration::corrections::Corrections>
value atControl.additional_outputs.last_calibration_corrections
(current main). In my understanding,subscribe_value
should work and directly give me the deserialisation.For example, these seems to be working?
But it didn't for
Corrections
! While there were no compilation or runtime errors, the deserialised values were garbage, easily verified when comparing the values in aText
panel.But this works:
So it looks like (some?) additional outputs are sent as JSON? or what's going on O.o , is there something wrong with the type itself?
The text was updated successfully, but these errors were encountered: