MockBoat has autoVMG disabled by default.

Wind/Tack commands disable autoVMG. VMG command enables it.
Upwind command was turning until boat was at 0 degrees, instead of being aligned with wind direction, but that's fixed.
#story[1096]
This commit is contained in:
fjc40
2017-08-10 12:44:42 +12:00
parent 3cf0cf2ee0
commit 39b5cc2edc
4 changed files with 10 additions and 2 deletions
@@ -18,6 +18,9 @@ public class TackGybeCommand implements Command {
//The refactoring of MockRace will require changes to be made
@Override
public void execute() {
boat.setAutoVMG(false);
/*VMG newVMG = boat.getPolars().calculateVMG(
race.getWindDirection(),
race.getWindSpeed(),