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