Skip to content
Snippets Groups Projects
Commit 307187a1 authored by terry-norbraten's avatar terry-norbraten
Browse files

use defaults

parent d9c284bb
No related branches found
No related tags found
No related merge requests found
...@@ -234,22 +234,22 @@ public class EspduSender ...@@ -234,22 +234,22 @@ public class EspduSender
for (InetAddress broadcast : broadcastAddresses) { for (InetAddress broadcast : broadcastAddresses) {
System.out.println("Sending broadcast datagram packet to " + broadcast); System.out.println("Sending broadcast datagram packet to " + broadcast);
packet = new DatagramPacket(data, data.length, broadcast, 3000); packet = new DatagramPacket(data, data.length, broadcast, DisThreadedNetIF.DEFAULT_DIS_PORT);
socket.send(packet); socket.send(packet);
// TODO experiment with these! 8) // TODO experiment with these! 8)
packet = new DatagramPacket(fireArray, fireArray.length, broadcast, 3000); // alternate packet = new DatagramPacket(fireArray, fireArray.length, broadcast, DisThreadedNetIF.DEFAULT_DIS_PORT); // alternate
socket.send(packet); socket.send(packet);
} }
// Send every 1 sec. Otherwise this will be all over in a fraction of a second. // Send every 1 sec. Otherwise this will be all over in a fraction of a second.
Thread.sleep(3000); Thread.sleep(1000L);
location = espdu.getEntityLocation(); location = espdu.getEntityLocation();
System.out.println("Espdu #" + idx + " EID=[" + entityID.getSiteID() + "," + entityID.getApplicationID() + "," + entityID.getEntityID() + "]"); System.out.println("Espdu #" + idx + " EID=[" + entityID.getSiteID() + "," + entityID.getApplicationID() + "," + entityID.getEntityID() + "]");
System.out.println(" DIS coordinates location=[" + location.getX() + "," + location.getY() + "," + location.getZ() + "]"); System.out.println(" DIS coordinates location=[" + location.getX() + "," + location.getY() + "," + location.getZ() + "]");
double c[] = {location.getX(), location.getY(), location.getZ()}; // double c[] = {location.getX(), location.getY(), location.getZ()};
double lla[] = CoordinateConversions.xyzToLatLonDegrees(c); // double lla[] = CoordinateConversions.xyzToLatLonDegrees(c);
// System.out.println(" Location (lat/lon/alt): [" + lla[0] + ", " + lla[1] + ", " + lla[2] + "]"); // System.out.println(" Location (lat/lon/alt): [" + lla[0] + ", " + lla[1] + ", " + lla[2] + "]");
} }
} }
......
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