Added heading to boatlocation messages
#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) {
|
||||
public BoatLocationMessage(int sourceID, double lat, double lon, long sequenceNumber, double heading) {
|
||||
super(MessageType.BOATLOCATION);
|
||||
|
||||
this.messageVersionNumber = (byte) 1;
|
||||
@@ -161,7 +161,7 @@ public class BoatLocationMessage extends AC35Data
|
||||
this.latitude = convertGPSToInt(lat);
|
||||
this.longitude = convertGPSToInt(lon);
|
||||
this.altitude = 0;
|
||||
this.heading = 0;
|
||||
this.heading = convertHeadingDoubleToInt(heading);
|
||||
this.pitch = 0;
|
||||
this.roll = 0;
|
||||
this.boatSpeed = 0;
|
||||
|
||||
Reference in New Issue
Block a user