- fix ntripClient

- fix gyroscope
- fix init screen
This commit is contained in:
2024-07-19 12:15:44 +02:00
parent 87743c8e67
commit 73fde34e48
9 changed files with 25 additions and 18 deletions
+5 -1
View File
@@ -12,8 +12,12 @@
#include "ntripClient.h"
NTRIPClient::NTRIPClient(SFE_UBLOX_GNSS *gnss, const char *host, uint16_t port, const char *mountPoint, const char *user, const char *password)
: gnss{gnss}, port{port}, host{host}, mountPoint{mountPoint}, user{user}, password{password}, ntripClient{new WiFiClient}, state{NTRIPClientStates::closingConnection}
: gnss{gnss}, port{port}, ntripClient{new WiFiClient}, state{NTRIPClientStates::closingConnection}
{
strcpy(this->host, host);
strcpy(this->mountPoint, mountPoint);
strcpy(this->user, user);
strcpy(this->password, password);
Component::loopDelay = NTRIPClient::loopDelay;
}
+6 -5
View File
@@ -120,12 +120,13 @@ private:
uint32_t lastGPGGAPushTime = 0;
uint32_t lastReconnectTime = 0;
const char *host;
const char *mountPoint;
const char *user;
const char *password;
static const uint8_t connectionDataLength = 32;
char host[connectionDataLength];
char mountPoint[connectionDataLength];
char user[connectionDataLength];
char password[connectionDataLength];
const uint8_t maxReconnectAttemps = 10;
const uint16_t reconnectDelayTime = 1000;
const uint16_t reconnectDelayTime = 5000;
const uint16_t timeOut = 10000;
const uint16_t bufferSize = 512;
const uint16_t bufferSizePushGPGGA = 128;