Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
dd5c5c89
Commit
dd5c5c89
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
latest build
parent
9961507d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/src/OpenDis7Examples/AllPduSender.java
+2
-0
2 additions, 0 deletions
examples/src/OpenDis7Examples/AllPduSender.java
examples/src/OpenDis7Examples/AllPduSenderLog.txt
+1
-1
1 addition, 1 deletion
examples/src/OpenDis7Examples/AllPduSenderLog.txt
with
3 additions
and
1 deletion
examples/src/OpenDis7Examples/AllPduSender.java
+
2
−
0
View file @
dd5c5c89
...
@@ -413,6 +413,8 @@ public class AllPduSender
...
@@ -413,6 +413,8 @@ public class AllPduSender
{
{
VariableDatum
newVariableDatum
=
new
VariableDatum
();
VariableDatum
newVariableDatum
=
new
VariableDatum
();
newVariableDatum
.
setVariableDatumValue
(
comment
.
getBytes
());
// conversion
newVariableDatum
.
setVariableDatumValue
(
comment
.
getBytes
());
// conversion
// TODO confirm whether method overloading is appropriate
// newVariableDatum.setVariableDatumLength(comment.getBytes().length);
newVariableDatum
.
setVariableDatumLengthInBytes
(
comment
.
getBytes
().
length
);
// also available in bits, see spec and javadoc
newVariableDatum
.
setVariableDatumLengthInBytes
(
comment
.
getBytes
().
length
);
// also available in bits, see spec and javadoc
// alternatively, you do not need to set this and the marshaller will figure it out from the byte array
// alternatively, you do not need to set this and the marshaller will figure it out from the byte array
// (see javadoc for VariableDatum.setVariableDatumLength())
// (see javadoc for VariableDatum.setVariableDatumLength())
...
...
This diff is collapsed.
Click to expand it.
examples/src/OpenDis7Examples/AllPduSenderLog.txt
+
1
−
1
View file @
dd5c5c89
...
@@ -88,4 +88,4 @@ Sent packet #70, DisPduType 70 INFORMATION_OPERATIONS_ACTION (packet.getLen
...
@@ -88,4 +88,4 @@ Sent packet #70, DisPduType 70 INFORMATION_OPERATIONS_ACTION (packet.getLen
Sent packet #71, DisPduType 71 INFORMATION_OPERATIONS_REPORT (packet.getLength()= 40) of type edu.nps.moves.dis7.pdus.InformationOperationsReportPdu
Sent packet #71, DisPduType 71 INFORMATION_OPERATIONS_REPORT (packet.getLength()= 40) of type edu.nps.moves.dis7.pdus.InformationOperationsReportPdu
Sent packet #72, DisPduType 72 ATTRIBUTE (packet.getLength()= 32) of type edu.nps.moves.dis7.pdus.AttributePdu
Sent packet #72, DisPduType 72 ATTRIBUTE (packet.getLength()= 32) of type edu.nps.moves.dis7.pdus.AttributePdu
OpenDis7Examples.AllPduSender complete, sent 72 PDUs total.
OpenDis7Examples.AllPduSender complete, sent 72 PDUs total.
BUILD SUCCESSFUL (total time:
4
seconds)
BUILD SUCCESSFUL (total time:
3
seconds)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment