if (currentTack == 1)
{
moveBoatToNewRelativeHeading(50);
}
else if (currentTack == -1)
{
moveBoatToNewRelativeHeading(310);
}
else
{
float angle = angleToTarget(destinationLat, destinationLong);
int angleDifference = (int)angle;
moveBoatToNewRelativeHeading(angleDifference);
}
}