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
362c6c48
Commit
362c6c48
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
refactored DisTime utilities package in open-dis7-java library
parent
17f09801
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java
+1
-2
1 addition, 2 deletions
...0Cohort2020JulySeptember/homework4/Britt/EspduSender.java
with
1 addition
and
2 deletions
assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java
+
1
−
2
View file @
362c6c48
...
...
@@ -74,7 +74,6 @@ 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
();
// ICBM coordinates for my office
double
latitude
=
36.639222
;
...
...
@@ -237,7 +236,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
.
getDisAbsoluteTimestamp
();
int
timestamp
=
D
isTime
.
get
Current
DisAbsoluteTimestamp
();
espdu
.
setTimestamp
(
timestamp
);
// Set the position of the entity in the world. DIS uses a cartesian
...
...
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