From c0e9461fbba561287460546192aafc9dc9482e32 Mon Sep 17 00:00:00 2001 From: ronzeiller Date: Mon, 8 Jan 2018 15:54:05 +0100 Subject: [PATCH] changed to SKNormalizeAngle --- src/common/signalk/SKNMEAParser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/signalk/SKNMEAParser.cpp b/src/common/signalk/SKNMEAParser.cpp index 6cea5c23..500ea81b 100644 --- a/src/common/signalk/SKNMEAParser.cpp +++ b/src/common/signalk/SKNMEAParser.cpp @@ -133,10 +133,8 @@ const SKUpdate& SKNMEAParser::parseMWV(const SKSourceInput& input, NMEASentenceR // Wind sensors return a number between 0 and 360 but we want an // angle in radian with negative values when wind coming from port - if (windAngle > 180) { - windAngle = windAngle - 360; - } windAngle = SKDegToRad(windAngle); + SKNormalizeAngle(windAngle); SKUpdateStatic<2>* wmv = new SKUpdateStatic<2>(); wmv->setTimestamp(time);