From 82b6c862470b41c95da4abe9fb50980227e3c47a Mon Sep 17 00:00:00 2001 From: wellenvogel Date: Sat, 8 Jan 2022 21:43:52 +0100 Subject: [PATCH] correct formatWind --- lib/boatData/GwBoatData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/boatData/GwBoatData.cpp b/lib/boatData/GwBoatData.cpp index 91d1bc2..df61ddf 100644 --- a/lib/boatData/GwBoatData.cpp +++ b/lib/boatData/GwBoatData.cpp @@ -425,7 +425,7 @@ double formatWind(double cv) { double rt = formatCourse(cv); if (rt > 180) - rt = 180 - rt; + rt = -1 * (360 - rt); return rt; } double formatKnots(double cv)