Updated velocity in yacht constructor so the boat can be seen properly working for test purposes

This commit is contained in:
William Muir
2017-07-24 16:47:17 +12:00
parent 526c12127f
commit 07cebb6c5b
3 changed files with 18 additions and 2 deletions
@@ -368,6 +368,7 @@ public class ClientPacketParser {
//Converts the double to a usable lat/lon
double lat = ((180d * (double) rawLat) / Math.pow(2, 31));
double lon = ((180d * (double) rawLon) / Math.pow(2, 31));
// System.out.println("[CLIENT] Lat: " + lat + " Lon: " + lon);
long heading = bytesToLong(Arrays.copyOfRange(payload, 28, 30));
double groundSpeed = bytesToLong(Arrays.copyOfRange(payload, 38, 40)) / 1000.0;
//type 1 is a racing yacht and type 3 is a mark, needed for updating positions of the mark and boat