Merged master.

main
Joseph Gardner 9 years ago
parent 20c9870fea
commit a50d460222

@ -395,7 +395,7 @@ public class ResizableRaceCanvas extends ResizableCanvas {
*/ */
private void drawSails(VisualiserBoat boat) { private void drawSails(VisualiserBoat boat) {
GraphCoordinate boatPos = GraphCoordinate boatPos =
this.map.convertGPS(boat.getCurrentPosition()); this.map.convertGPS(boat.getPosition());
double xPos = boatPos.getX(); // x pos of sail (on boat) double xPos = boatPos.getX(); // x pos of sail (on boat)
double yPos = boatPos.getY() - 6; // y pos of sail (on boat) double yPos = boatPos.getY() - 6; // y pos of sail (on boat)
double boatBearing = boat.getBearing().degrees(); double boatBearing = boat.getBearing().degrees();

Loading…
Cancel
Save