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

convert RMC from 0183 to 2k, avoid cores

This commit is contained in:
andreas
2021-10-31 21:20:27 +01:00
parent c14ed4cfe9
commit 470dec92ad
6 changed files with 155 additions and 71 deletions

View File

@@ -36,6 +36,7 @@ class GwBoatItemBase{
}
virtual void toJsonDoc(JsonDocument *doc, unsigned long minTime)=0;
virtual size_t getJsonSize(){return JSON_OBJECT_SIZE(4);}
virtual int getLastSource()=0;
};
class GwBoatData;
template<class T> class GwBoatItem : public GwBoatItemBase{
@@ -75,6 +76,7 @@ template<class T> class GwBoatItem : public GwBoatItemBase{
o[F("source")]=lastUpdateSource;
o[F("valid")]=isValid(minTime);
}
virtual int getLastSource(){return lastUpdateSource;}
};
static double formatCourse(double cv)