MockBoat: Removed redundant isAutoVMG() function.

TackGybeCommand now disables autoVMG.
Removed print statements from VMGCommand.
This commit is contained in:
fjc40
2017-08-15 18:48:14 +12:00
parent dc4610d6eb
commit 9ab12a9c58
4 changed files with 4 additions and 6 deletions
@@ -23,6 +23,9 @@ public class TackGybeCommand implements Command {
@Override
public void execute() {
boat.setAutoVMG(false);
double boatAngle = boat.getBearing().degrees();
double windAngle =race.getWindDirection().degrees();
double differenceAngle = calcDistance(boatAngle, windAngle);