From 362c6c48501a30de61281ec92ce68f4e9774448e Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Sat, 22 Jan 2022 17:24:30 -0800 Subject: [PATCH] refactored DisTime utilities package in open-dis7-java library --- .../homework4/Britt/EspduSender.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java b/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java index 0b8a472d4b..14692b8b66 100644 --- a/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java +++ b/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java @@ -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 -- GitLab