|
|
|
|
@ -150,7 +150,7 @@ public class BoatLocationMessage extends AC35Data
|
|
|
|
|
this.rudderAngle = rudderAngle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BoatLocationMessage(int sourceID, double lat, double lon, long sequenceNumber, double heading, int boatSpeed) {
|
|
|
|
|
public BoatLocationMessage(int sourceID, double lat, double lon, long sequenceNumber, double heading, double boatSpeed) {
|
|
|
|
|
super(MessageType.BOATLOCATION);
|
|
|
|
|
|
|
|
|
|
this.messageVersionNumber = (byte) 1;
|
|
|
|
|
@ -164,7 +164,7 @@ public class BoatLocationMessage extends AC35Data
|
|
|
|
|
this.heading = convertHeadingDoubleToInt(heading);
|
|
|
|
|
this.pitch = 0;
|
|
|
|
|
this.roll = 0;
|
|
|
|
|
this.boatSpeed = boatSpeed;
|
|
|
|
|
this.boatSpeed = convertBoatSpeedDoubleToInt(boatSpeed);
|
|
|
|
|
this.boatCOG = 0;
|
|
|
|
|
this.boatSOG = 0;
|
|
|
|
|
this.apparentWindSpeed = 0;
|
|
|
|
|
|