Mock.Polars:
Fixed a bug where calculateVMG was placing velocity into the VMG object, instead of speed. Maybe fixed a bug when a bearingLowerBound which is greater than bearingUpperBound is provided. Added another test case. Mock.Constants: Added knots to millimeters per second conversion factor. Mock.Boat: Added calculateDIstanceToNextMarker function, which returns the distance, in nautical miles, to the next mark. Mock.Race: Added wind direction as a race property. Added wind speed as a race property. The race status messages sent by Race now use Race's wind speed and direction. #story[873]
This commit is contained in:
@@ -251,7 +251,7 @@ public class BoatLocation extends AC35Data {
|
||||
* @param angle Angle to convert. double.
|
||||
* @return short representation of heading.
|
||||
*/
|
||||
public static short convertTrueWindAngleShortToDouble(double angle) {
|
||||
public static short convertTrueWindAngleDoubleToShort(double angle) {
|
||||
|
||||
short angleShort = (short) ((angle / 180.0) * 32768.0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user