mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
interpret true wind reading in MWV sentence as "from", not "to"
Change-Id: I5119cec02e34a8b42c9388dc0a4eadba0e1bbc59
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user