Fixed estimated time to next mark (annotation) to update correctly

#story[924]
This commit is contained in:
Zhi You Tan
2017-05-15 10:11:19 +12:00
parent 47880d09bc
commit 1ab6351d48
@@ -236,6 +236,7 @@ public class BoatGroup extends RaceObject{
wake.setRotationalVelocity(rotationalVelocity, rotationalGoal, boat.getVelocity()); wake.setRotationalVelocity(rotationalVelocity, rotationalGoal, boat.getVelocity());
} }
velocityObject.setText(String.format("%.2f m/s", boat.getVelocity())); velocityObject.setText(String.format("%.2f m/s", boat.getVelocity()));
estTimeToNextMarkObject.setText(String.valueOf(boat.getEstimateTimeAtNextMark()));
} else { } else {
setToInitialLocation = true; setToInitialLocation = true;
rotationalGoal = rotation; rotationalGoal = rotation;