|
|
|
|
@ -8,6 +8,8 @@ import SharedModel.BoatInRace;
|
|
|
|
|
import SharedModel.Constants;
|
|
|
|
|
import SharedModel.GPSCoordinate;
|
|
|
|
|
|
|
|
|
|
import static seng302.Networking.Utils.AC35UnitConverter.convertGPSToInt;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents the information in a boat location message (AC streaming spec: 4.9).
|
|
|
|
|
*/
|
|
|
|
|
@ -157,8 +159,8 @@ public class BoatLocationMessage extends AC35Data
|
|
|
|
|
this.sourceID = boat.getSourceID();
|
|
|
|
|
this.sequenceNumber = sequenceNumber;
|
|
|
|
|
this.deviceType = 1;
|
|
|
|
|
this.latitude = 0;//boat.getCurrentPosition().getLatitude();
|
|
|
|
|
this.longitude = 0;//boat.getCurrentPosition().getLongitude();
|
|
|
|
|
this.latitude = convertGPSToInt(boat.getCurrentPosition().getLatitude());
|
|
|
|
|
this.longitude = convertGPSToInt(boat.getCurrentPosition().getLongitude());
|
|
|
|
|
this.altitude = 0;
|
|
|
|
|
this.heading = 0;
|
|
|
|
|
this.pitch = 0;
|
|
|
|
|
|