interpret true wind reading in MWV sentence as "from", not "to"

Change-Id: I5119cec02e34a8b42c9388dc0a4eadba0e1bbc59
This commit is contained in:
Axel Uhl
2017-08-04 15:43:59 +02:00
parent ce3dcc36a1
commit 20ff38311c
2 changed files with 2 additions and 2 deletions
@@ -92,7 +92,7 @@ public class NMEAWindReceiverImpl implements NMEAWindReceiver {
try {
final Speed speed = createSpeed(sentence.getSpeedUnit(), sentence.getSpeed());
final KnotSpeedWithBearingAndTimepoint fix = new KnotSpeedWithBearingAndTimepoint(timePoint,
speed.getKnots(), new DegreeBearingImpl(sentence.getAngle()));
speed.getKnots(), new DegreeBearingImpl(sentence.getAngle()).reverse());
if (sentence.isTrue()) {
trueWind.add(fix);
tryToCreateWindFixFromTrueWind(fix);