1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

convert xte 2 way

This commit is contained in:
wellenvogel
2021-11-18 17:27:40 +01:00
parent 292fc006ae
commit aa0d22aab3
6 changed files with 95 additions and 20 deletions

View File

@@ -58,7 +58,7 @@ uint32_t mtr2nm(uint32_t m)
}
double mtr2nm(double m)
{
return m / 1852;
return m / 1852.0;
}
bool convertToJson(const GwSatInfoList &si,JsonVariant &variant){

View File

@@ -16,6 +16,7 @@ class GwBoatItemBase{
GWSC(formatWind);
GWSC(formatLatitude);
GWSC(formatLongitude);
GWSC(formatXte);
GWSC(formatFixed0);
GWSC(formatDepth);
GWSC(kelvinToC);
@@ -239,7 +240,7 @@ class GwBoatData{
GWBOATDATA(double,DepthTransducer,4000,formatDepth)
GWBOATDATA(double,SecondsSinceMidnight,4000,formatFixed0)
GWBOATDATA(double,WaterTemperature,4000,kelvinToC)
GWBOATDATA(double,XTE,4000,formatFixed0)
GWBOATDATA(double,XTE,4000,formatXte)
GWBOATDATA(double,DTW,4000,mtr2nm)
GWBOATDATA(double,BTW,4000,formatCourse)
GWBOATDATA(double,WPLatitude,4000,formatLatitude)