new ntrip client

This commit is contained in:
2022-09-21 12:50:01 +02:00
parent af6cb98898
commit a1a976be57
15 changed files with 658 additions and 251 deletions
+7 -5
View File
@@ -95,11 +95,13 @@ void Navigation::loop() {
if (millis() - this->lastMillis < this->timeToWait)
return;
uint8_t rtcmData[512 * 4];
uint16_t rtcmCount = this->ntripClient->available();
if (rtcmCount) {
this->ntripClient->readBytes(rtcmData, rtcmCount);
this->gps->pushRawData(rtcmData, rtcmCount);
if (this->isNtripInit) {
uint8_t rtcmData[512 * 4];
uint16_t rtcmCount = this->ntripClient->available();
if (rtcmCount) {
this->ntripClient->readBytes(rtcmData, rtcmCount);
this->gps->pushRawData(rtcmData, rtcmCount);
}
}
}