|
|
|
@ -61,6 +61,9 @@ public class BoatLocationDecoder {
|
|
|
|
currentSet = Arrays.copyOfRange(encodedBoatLocation,52, 54);
|
|
|
|
currentSet = Arrays.copyOfRange(encodedBoatLocation,52, 54);
|
|
|
|
rudderAngle = Arrays.copyOfRange(encodedBoatLocation,54, 56);
|
|
|
|
rudderAngle = Arrays.copyOfRange(encodedBoatLocation,54, 56);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// System.out.println(bytesToInt(sourceID));
|
|
|
|
|
|
|
|
// System.out.println(bytesToInt(boatSpeed));
|
|
|
|
|
|
|
|
|
|
|
|
message = new BoatLocationMessage(messageVersionNumber, bytesToLong(time),
|
|
|
|
message = new BoatLocationMessage(messageVersionNumber, bytesToLong(time),
|
|
|
|
bytesToInt(sourceID), bytesToInt(seqNum),
|
|
|
|
bytesToInt(sourceID), bytesToInt(seqNum),
|
|
|
|
deviceType, bytesToInt(latitude),
|
|
|
|
deviceType, bytesToInt(latitude),
|
|
|
|
|