Skip to content

Commit 7ec535f

Browse files
committed
Move NTRIP variables for System Status printing
1 parent 360cdbd commit 7ec535f

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ static const int NTRIPCLIENT_MS_BETWEEN_GGA = 5000; //5s between transmission of
6464
//The WiFi connection to the NTRIP caster to obtain RTCM data.
6565
static WiFiClient * ntripClient;
6666

67-
//Count the number of connection attempts
68-
static int ntripClientConnectionAttempts;
69-
70-
//NTRIP client timer usage:
71-
// * Measure the connection response time
72-
// * Receive NTRIP data timeout
73-
static uint32_t ntripClientTimer;
74-
static uint32_t ntripClientStartTime; //For calculating uptime
75-
7667
//Last time the NTRIP client state was displayed
7768
static uint32_t lastNtripClientState = 0;
7869

Firmware/RTK_Surveyor/NtripServer.ino

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ static WiFiClient * ntripServer;
6767
//Count of bytes sent by the NTRIP server to the NTRIP caster
6868
uint32_t ntripServerBytesSent = 0;
6969

70-
//Count the number of connection attempts
71-
static int ntripServerConnectionAttempts;
72-
7370
//Throttle the time between connection attempts
7471
static int ntripServerConnectionAttemptTimeout = 0;
7572
static uint32_t ntripServerLastConnectionAttempt = 0;
@@ -78,14 +75,6 @@ static uint32_t ntripServerTimeoutPrint = 0;
7875
//Last time the NTRIP server state was displayed
7976
static uint32_t ntripServerStateLastDisplayed = 0;
8077

81-
//NTRIP server timer usage:
82-
// * Measure the connection response time
83-
// * Receive RTCM correction data timeout
84-
// * Monitor last RTCM byte received for frame counting
85-
static uint32_t ntripServerTimer;
86-
87-
static uint32_t ntripServerStartTime;
88-
8978
//----------------------------------------
9079
// NTRIP Server Routines - compiled out
9180
//----------------------------------------

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ LoggingType loggingType = LOGGING_UNKNOWN;
162162
#endif
163163

164164
volatile uint8_t wifiNmeaConnected;
165+
166+
//NTRIP client timer usage:
167+
// * Measure the connection response time
168+
// * Receive NTRIP data timeout
169+
static uint32_t ntripClientTimer;
170+
static uint32_t ntripClientStartTime; //For calculating uptime
171+
static int ntripClientConnectionAttempts; //Count the number of connection attempts
172+
173+
//NTRIP server timer usage:
174+
// * Measure the connection response time
175+
// * Receive RTCM correction data timeout
176+
// * Monitor last RTCM byte received for frame counting
177+
static uint32_t ntripServerTimer;
178+
static uint32_t ntripServerStartTime;
179+
static int ntripServerConnectionAttempts; //Count the number of connection attempts
180+
165181
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
166182

167183
//GNSS configuration

0 commit comments

Comments
 (0)