diff --git a/assignments/src/MV3500Cohort2019JulySeptember/homework4/Brennenstuhl/BrennenstuhlEspduSender.java b/assignments/src/MV3500Cohort2019JulySeptember/homework4/Brennenstuhl/BrennenstuhlEspduSender.java index 3003f9e819da81e224d8d24fc5dd13949f95c3e5..7a54eeae1e9c204fd48261dd41aeee470c53ffe1 100644 --- a/assignments/src/MV3500Cohort2019JulySeptember/homework4/Brennenstuhl/BrennenstuhlEspduSender.java +++ b/assignments/src/MV3500Cohort2019JulySeptember/homework4/Brennenstuhl/BrennenstuhlEspduSender.java @@ -65,7 +65,6 @@ public class BrennenstuhlEspduSender 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.595517; @@ -200,7 +199,7 @@ public class BrennenstuhlEspduSender // 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 diff --git a/assignments/src/MV3500Cohort2019JulySeptember/homework4/Schutt/SchuttESPDUSender.java b/assignments/src/MV3500Cohort2019JulySeptember/homework4/Schutt/SchuttESPDUSender.java index a3f961e58cbc52e13394e67c148056e55e7eddea..77195121af1ebf48ff9749a1dc195bbef9d7fcfc 100644 --- a/assignments/src/MV3500Cohort2019JulySeptember/homework4/Schutt/SchuttESPDUSender.java +++ b/assignments/src/MV3500Cohort2019JulySeptember/homework4/Schutt/SchuttESPDUSender.java @@ -70,7 +70,6 @@ public class SchuttESPDUSender { 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(); // Entity Location double latitude = 36.595517; @@ -194,7 +193,7 @@ public class SchuttESPDUSender { // 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 diff --git a/assignments/src/MV3500Cohort2019JulySeptember/homework4/Yurkovich/Yurk_EspduSender.java b/assignments/src/MV3500Cohort2019JulySeptember/homework4/Yurkovich/Yurk_EspduSender.java index 81cf7ccaf0cd728c52eebd7a3dd5b4cbb72daaf9..8455dffd87cfd6b2f4ac093053a23bf6a28715b7 100644 --- a/assignments/src/MV3500Cohort2019JulySeptember/homework4/Yurkovich/Yurk_EspduSender.java +++ b/assignments/src/MV3500Cohort2019JulySeptember/homework4/Yurkovich/Yurk_EspduSender.java @@ -61,7 +61,6 @@ public class Yurk_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.595517; @@ -196,7 +195,7 @@ public class Yurk_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