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
2f371c84
Commit
2f371c84
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
DisTime improvements open-dis7
parent
924b4710
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/EspduSender.java
+2
-2
2 additions, 2 deletions
examples/src/OpenDis7Examples/EspduSender.java
examples/src/OpenDis7Examples/EspduSenderLog.txt
+10
-10
10 additions, 10 deletions
examples/src/OpenDis7Examples/EspduSenderLog.txt
with
12 additions
and
12 deletions
examples/src/OpenDis7Examples/EspduSender.java
+
2
−
2
View file @
2f371c84
...
...
@@ -77,7 +77,7 @@ public class EspduSender
int
port
=
DEFAULT_MULTICAST_PORT
;
MulticastSocket
socket
=
null
;
// must be initialized to avoid later error, even if null;
EntityStatePdu
espdu
=
new
EntityStatePdu
();
DisTime
disTime
=
new
DisTime
();
//
DisTime disTime = new DisTime();
// ICBM coordinates for my office
double
latitude
=
36.595517
;
...
...
@@ -248,7 +248,7 @@ public class EspduSender
// update the timestamp on ALL packets sent.
// An alterative approach: actually follow the standard. It's a crazy concept,
// but it might just work.
int
timestamp
=
d
isTime
.
getCurrentDis
Absolute
Timestamp
();
int
timestamp
=
D
isTime
.
getCurrentDisTimestamp
();
espdu
.
setTimestamp
(
timestamp
);
// Set the position of the entity in the world. DIS uses a cartesian
...
...
This diff is collapsed.
Click to expand it.
examples/src/OpenDis7Examples/EspduSenderLog.txt
+
10
−
10
View file @
2f371c84
...
...
@@ -27,8 +27,8 @@ FirePdu #1 firePdu=[FireMissionIndex=0, descriptor=MunitionDescriptor munitionTy
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 127.255.255.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
0.0
.0.255
port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
0.0
.0.255
port 3000
===============
Create new PDUs
latitude, longitude: [36.595517, -121.877]
...
...
@@ -39,8 +39,8 @@ FirePdu #2 firePdu=[FireMissionIndex=0, descriptor=MunitionDescriptor munitionTy
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 127.255.255.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
0.0
.0.255
port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
0.0
.0.255
port 3000
===============
Create new PDUs
latitude, longitude: [36.595517, -121.87706]
...
...
@@ -51,8 +51,8 @@ FirePdu #3 firePdu=[FireMissionIndex=0, descriptor=MunitionDescriptor munitionTy
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 127.255.255.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
0.0
.0.255
port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
0.0
.0.255
port 3000
===============
Create new PDUs
latitude, longitude: [36.595517, -121.877]
...
...
@@ -63,8 +63,8 @@ FirePdu #4 firePdu=[FireMissionIndex=0, descriptor=MunitionDescriptor munitionTy
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 127.255.255.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
0.0
.0.255
port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
0.0
.0.255
port 3000
===============
Create new PDUs
latitude, longitude: [36.595517, -121.87706]
...
...
@@ -75,8 +75,8 @@ FirePdu #5 firePdu=[FireMissionIndex=0, descriptor=MunitionDescriptor munitionTy
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 127.255.255.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 172.20.210.244 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
72.16
.0.255 port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 01 ENTITY_STATE] packet.getLength()=144, to 1
0.0
.0.255
port 3000
[OpenDis7Examples.EspduSender] sending datagram packet [DisPduType 02 FIRE ] packet.getLength()= 96, to 1
0.0
.0.255
port 3000
===============
[OpenDis7Examples.EspduSender] complete.
BUILD SUCCESSFUL (total time: 7 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