Skip to content

Commit

Permalink
add a test for MWV with wind angle > 180
Browse files Browse the repository at this point in the history
  • Loading branch information
sarfata committed Jan 11, 2018
1 parent 4eb83eb commit 86b0b01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/signalk/SKNMEAParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ TEST_CASE("SKNMEAParser: MWV") {

CHECK( update.getSize() == 0 );
}
SECTION("MWV relative with wind angle > 180") {
// Unit S seems to be knots but I cannot find a real source here.
const SKUpdate& update = p.parse(SKSourceInputNMEA0183_1, "$WIMWV,271,R,5.6,K,A*3F", SKTime(42));

CHECK( update.getEnvironmentWindAngleApparent() == Approx(SKDegToRad(-89)) );
}
}

TEST_CASE("SKNMEAParser: XDR wind temperature") {
Expand Down

0 comments on commit 86b0b01

Please sign in to comment.