Skip to content

Commit

Permalink
changed to SKNormalizeAngle
Browse files Browse the repository at this point in the history
  • Loading branch information
ronzeiller committed Jan 8, 2018
1 parent f71720c commit c0e9461
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/signalk/SKNMEAParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0e9461

Please sign in to comment.