Skip to content

Commit c083881

Browse files
committed
Allow ZED to use NtripClient for GGA transmission
1 parent c3eb519 commit c083881

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Firmware/RTK_Everywhere/GNSS_ZED.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ GNSS_ZED.ino
66

77
#ifdef COMPILE_ZED
88

9+
extern int NTRIPCLIENT_MS_BETWEEN_GGA;
10+
extern NetworkClient *ntripClient;
11+
extern unsigned long lastGGAPush;
12+
913
//----------------------------------------
1014
// If we have decryption keys, configure module
1115
// Note: don't check online.lband_neo here. We could be using ip corrections

Firmware/RTK_Everywhere/NtripClient.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static const int RTCM_DATA_SIZE = 512 * 4;
143143
// NTRIP client server request buffer size
144144
static const int SERVER_BUFFER_SIZE = CREDENTIALS_BUFFER_SIZE + 3;
145145

146-
static const int NTRIPCLIENT_MS_BETWEEN_GGA = 5000; // 5s between transmission of GGA messages, if enabled
146+
int NTRIPCLIENT_MS_BETWEEN_GGA = 5000; // 5s between transmission of GGA messages, if enabled
147147

148148
// NTRIP client connection delay before resetting the connect accempt counter
149149
static const int NTRIP_CLIENT_CONNECTION_TIME = 5 * 60 * 1000;
@@ -179,7 +179,7 @@ const RtkMode_t ntripClientMode = RTK_MODE_ROVER | RTK_MODE_BASE_SURVEY_IN;
179179
//----------------------------------------
180180

181181
// The network connection to the NTRIP caster to obtain RTCM data.
182-
static NetworkClient *ntripClient;
182+
NetworkClient *ntripClient;
183183
static volatile uint8_t ntripClientState = NTRIP_CLIENT_OFF;
184184

185185
// Throttle the time between connection attempts

0 commit comments

Comments
 (0)