-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Optional condition doesnt work with ref field #1
Comments
Thanks for the report, I'll try to evaluate it and introduce a fix during the weekend |
The problem is reproduced and acknowledged. I'll try to introduce a fix during the next week. In the meantime I recommend using a workaround with reuse property. It will just duplicate the code of the field definition instead of creating alias to it.
As the side note, the length of the Also note, that the default construction of your InfoTypes bitset should correspond to the default existence mode of your optional field. If you want the optional field to exist by default, then your TransponderPosition bit should be default constructed to be true. |
Thanks for the info. I also noticed the length attribute. Just to clarify the second part: What are you meaning by the terms of
If I have the following consturcts:
Then OptField1 with |
If I understand your definition correctly you want In other words, when you default construct your message object the values of your fields are in an inconsistent state, and if you send it like this over the I/O link, the other end will read the value of What I'm saying is that if you want the
|
The fix was introduced to "develop" branch, will be merged to "master" in upcoming release. |
Unfortunately RTCM protocol is too exotic for both "commsdsl" protocol generator and "COMMS" library. It specifies fields in bits (not bytes) and any message and/or field can end up in the middle of the byte. My work supports combining several bit-length fields into a single field, called "bitfield", but the total length of its inner members mustn't exceed 64 bits and must be dividable by 8, i.e. to end in the boundaries of bytes. You don't have any other choice but to manually implement RTCM protocol if you need one. There should be plenty third party libraries that do it for you. |
Fixed in v2.2. |
Optional condition doesnt work, if the reference field is of type ref which points to a set.
Example:
The text was updated successfully, but these errors were encountered: