mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 14:33:07 +01:00
MWV to n2k
This commit is contained in:
@@ -288,6 +288,12 @@ private:
|
||||
updateDouble(boatData->AWS, WindSpeed);
|
||||
setMax(boatData->MaxAws, boatData->AWS);
|
||||
}
|
||||
if (WindReference == N2kWind_True_North)
|
||||
{
|
||||
NMEA0183Reference = NMEA0183Wind_True;
|
||||
updateDouble(boatData->TWD, WindAngle);
|
||||
updateDouble(boatData->TWS, WindSpeed);
|
||||
}
|
||||
|
||||
if (NMEA0183SetMWV(NMEA0183Msg, formatCourse(WindAngle), NMEA0183Reference, WindSpeed))
|
||||
SendMessage(NMEA0183Msg);
|
||||
|
||||
Reference in New Issue
Block a user