Skip to content
Snippets Groups Projects
Commit 362c6c48 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

refactored DisTime utilities package in open-dis7-java library

parent 17f09801
No related branches found
No related tags found
No related merge requests found
......@@ -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 = disTime.getDisAbsoluteTimestamp();
int timestamp = DisTime.getCurrentDisAbsoluteTimestamp();
espdu.setTimestamp(timestamp);
// Set the position of the entity in the world. DIS uses a cartesian
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment