Removed commented out code. Merged master in.

#story[1097]
main
zwu18 8 years ago
parent c3ea62dfee
commit 848edfc6a4

@ -22,16 +22,8 @@ public class TackGybeCommand implements Command {
this.boat = boat; this.boat = boat;
} }
//The refactoring of MockRace will require changes to be made
@Override @Override
public void execute() { public void execute() {
/*if(boat.getBearing().degrees()>180){
boat.setBearing(Bearing.fromDegrees(360 - race.getWindDirection().degrees()));
} else {
boat.setBearing(Bearing.fromDegrees(race.getWindDirection().degrees()));
}*/
/*double angle = Math.max(race.getWindDirection().degrees(), boat.getBearing().degrees()) - Math.min(race.getWindDirection().degrees(), boat.getBearing().degrees());
boat.setBearing(Bearing.fromDegrees(angle));*/
double boatAngle = boat.getBearing().degrees(); double boatAngle = boat.getBearing().degrees();
double windAngle =race.getWindDirection().degrees(); double windAngle =race.getWindDirection().degrees();
double differenceAngle = calcDistance(boatAngle, windAngle); double differenceAngle = calcDistance(boatAngle, windAngle);

@ -20,7 +20,6 @@ public class VMGCommand implements Command {
this.boat = boat; this.boat = boat;
} }
//The refactoring of MockRace will require changes to be made
@Override @Override
public void execute() { public void execute() {
if (boat.getAutoVMG()){ if (boat.getAutoVMG()){

Loading…
Cancel
Save