Skip to content

Commit

Permalink
Check lat / lon within limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglasdc3 committed Mar 12, 2023
1 parent 2020e84 commit 48d4d37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public void test_airborne_position_aircraft() throws UnknownDownlinkFormatExcept
AirbornePosition positionB = (AirbornePosition) exSqB;
// We should now have a valid position after receiving both even and odd frames
assertEquals(true, positionB.isPositionAvailable());
assertEquals(Math.round(52.789 * 100), Math.round(positionB.getLat() * 100));
assertEquals(Math.round(-2.405 * 100), Math.round(positionB.getLon() * 100));
assertEquals(52.789, positionB.getLat(), 0.001);
assertEquals(-2.405, positionB.getLon(), 0.001);
}

private DownlinkFormat testMessage(String message) throws UnknownDownlinkFormatException {
Expand Down

0 comments on commit 48d4d37

Please sign in to comment.