diff --git a/src/main/java/seng302/models/Event.java b/src/main/java/seng302/models/Event.java index 576c1e44..e803845d 100644 --- a/src/main/java/seng302/models/Event.java +++ b/src/main/java/seng302/models/Event.java @@ -113,7 +113,8 @@ public class Event { } /** - * @return the boats heading + * Calculates current boat heading direction. + * @return the boats heading as degree. vertical upward is 0 degree, and degree goes up clockwise. */ public double getBoatHeading() { if (mark2 == null){ @@ -132,7 +133,9 @@ public class Event { } // Convert back to degrees, and flip 180 degrees - return (Math.toDegrees(headingRadians) + 180) % 360; +// return ((headingRadians) * 180) / Math.PI; + return (Math.toDegrees(headingRadians) + 90) % 360; + } public Mark getThisMark() {