Fixed speed notbeing displayed from AC35 live data
- Turns out the AC35 stream gives the speed in the SOG (speed over ground) section, not the boat speed section #story[782]
This commit is contained in:
@@ -61,6 +61,9 @@ public class BoatLocationDecoder {
|
||||
currentSet = Arrays.copyOfRange(encodedBoatLocation,52, 54);
|
||||
rudderAngle = Arrays.copyOfRange(encodedBoatLocation,54, 56);
|
||||
|
||||
// System.out.println(bytesToInt(sourceID));
|
||||
// System.out.println(bytesToInt(boatSpeed));
|
||||
|
||||
message = new BoatLocationMessage(messageVersionNumber, bytesToLong(time),
|
||||
bytesToInt(sourceID), bytesToInt(seqNum),
|
||||
deviceType, bytesToInt(latitude),
|
||||
|
||||
@@ -166,7 +166,7 @@ public class BoatLocationMessage extends AC35Data
|
||||
this.roll = 0;
|
||||
this.boatSpeed = convertBoatSpeedDoubleToInt(boatSpeed);
|
||||
this.boatCOG = 0;
|
||||
this.boatSOG = 0;
|
||||
this.boatSOG = convertBoatSpeedDoubleToInt(boatSpeed);
|
||||
this.apparentWindSpeed = 0;
|
||||
this.apparentWindAngle = 0;
|
||||
this.trueWindSpeed = 0;
|
||||
|
||||
Reference in New Issue
Block a user