-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fixup Set Data Pdu (DIS 6) #25
Conversation
It was possible to carefully pack the data into UnsignedIntegerWrapper's, but it's tricky. Using the proper classes makes API much easier to work with.
"This field shall be padded at the end to make the length a multiple of 64-bits." http://faculty.nps.edu/brutzman/vrtp/mil/navy/nps/disEnumerations/JdbeHtmlFiles/pdu/108.htm
+1, nice coding Leif. |
Thanks @IanMayo @mcgredonps what do you think? |
Looks good. Do you have a copy of the DIS 7 standard? It tends to go into more detail about what they "really" mean, even for the pre-DIS 7 things. Don Brutzman's web page is pretty horribly out of date on DIS and you probably shouldn't be relying on it. I've been trying to get him to take it down for a while. |
Ah good to know! I don't have a copy of the DIS 7 standard, maybe I should find one. |
mcgredo@nps.edumailto:mcgredo@nps.edu Drop me a line. On Jul 25, 2016, at 11:20 AM, Leif Gruenwoldt <notifications@github.commailto:notifications@github.com> wrote: Ah good to know! I don't have a copy of the DIS 7 standard, maybe I should find one. — |
Lately I've been experimenting with the VBS 3.8 Gateway DIS interface. I got excited when I noticed it supported sending VBS script commands via Set Data Pdu's and then responses back in Data Pdu's. I've never used these Pdu's before so it didn't surprise me the following fixes were required to make OpenDIS send valid PDU's (verified with Wireshark).
Some of these fixes may be more appropriate in xmlpg (?), but I'm still not comfortable enough with that process yet. Worst case this at least adds a couple more unit tests to catch regressions in case xmlpg is re-run and blows away changes to the PDU's.
P.S. I haven't forgotten about cutting an open-dis-java 5.0 release, it's still on my radar. After this PR is merged I'd like to find some time to focus on doing that.