Added boat velocity to information provided by mock
#story[778]
This commit is contained in:
@@ -150,7 +150,7 @@ public class BoatLocationMessage extends AC35Data
|
||||
this.rudderAngle = rudderAngle;
|
||||
}
|
||||
|
||||
public BoatLocationMessage(int sourceID, double lat, double lon, long sequenceNumber, double heading) {
|
||||
public BoatLocationMessage(int sourceID, double lat, double lon, long sequenceNumber, double heading, int 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 = 0;
|
||||
this.boatSpeed = boatSpeed;
|
||||
this.boatCOG = 0;
|
||||
this.boatSOG = 0;
|
||||
this.apparentWindSpeed = 0;
|
||||
|
||||
Reference in New Issue
Block a user