added virtual destuctor for menu things

This commit is contained in:
2022-10-03 17:02:34 +02:00
parent a1a976be57
commit ee5bc9129a
9 changed files with 46 additions and 58 deletions
+7 -1
View File
@@ -21,13 +21,17 @@ class NTRIPClient {
void loop();
void gpsConfiguration();
void pushGPGGA(NMEA_GGA_data_t *nmeaData);
void setTransmitLocation(bool b) { this->transmitLocation = b; }
void setActivated(bool b) { this->activated = b; }
bool isConnected();
NTRIPClientStates getClientState() { return this->state; }
static void printPVTdata(UBX_NAV_PVT_data_t *ubxDataStruct);
private:
void pushGPGGA(NMEA_GGA_data_t *nmeaData);
bool beginClient();
void closeConnection();
bool processConnection();
@@ -42,6 +46,7 @@ class NTRIPClient {
uint16_t port;
uint32_t lastReceivedRtcmTime = 0;
uint32_t lastNtripConnectTime = 0;
uint32_t lastGPGGAPushTime = 0;
uint32_t lastLoopTime = 0;
const char* host;
@@ -52,6 +57,7 @@ class NTRIPClient {
const uint16_t timeOut = 5000;
const uint16_t tryReconnectTime = 5000;
const uint16_t bufferSize = 512;
const uint16_t pushGPGGATime = 10000;
};
#endif