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:
@@ -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){
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user