Added heading to boatlocation messages
#story[778]
This commit is contained in:
@@ -29,7 +29,6 @@ public class StreamedCourse extends Observable implements RaceDataSource {
|
||||
this.boatXMLReader = boatXMLReader;
|
||||
if (streamedCourseXMLReader != null && boatXMLReader != null) {
|
||||
boatXMLReader.setParticipants(streamedCourseXMLReader.getParticipants());
|
||||
System.out.println("Participant size: " + streamedCourseXMLReader.getParticipants().size());
|
||||
|
||||
boatXMLReader.read();
|
||||
}
|
||||
|
||||
@@ -89,7 +89,6 @@ public class StreamedCourseXMLReader extends XMLReader {
|
||||
raceType = getTextValueOfNode(settings, "RaceType");
|
||||
|
||||
creationTimeDate = ZonedDateTime.parse(getTextValueOfNode(settings, "CreationTimeDate"), dateFormat);
|
||||
// System.out.println(getTextValueOfNode(settings, "CreationTimeDate"));
|
||||
|
||||
if (raceTimeTag.getNamedItem("Time") != null) raceStartTime = ZonedDateTime.parse(raceTimeTag.getNamedItem("Time").getTextContent(), dateFormat);
|
||||
else raceStartTime = ZonedDateTime.parse(raceTimeTag.getNamedItem("Start").getTextContent(), dateFormat);
|
||||
|
||||
@@ -87,7 +87,6 @@ public class StreamedRace extends Race {
|
||||
int sourceID = boat.getSourceID();
|
||||
BoatLocationMessage boatLocationMessage = visualiserInput.getBoatLocationMessage(sourceID);
|
||||
if(boatLocationMessage != null) {
|
||||
System.out.println(sourceID);
|
||||
double lat = boatLocationMessage.getLatitudeDouble();
|
||||
double lon = boatLocationMessage.getLongitudeDouble();
|
||||
boat.setCurrentPosition(new GPSCoordinate(lat, lon));
|
||||
|
||||
Reference in New Issue
Block a user