Skip to content

Commit 5a08954

Browse files
committed
Make the inRoverMode methods public
1 parent 4066595 commit 5a08954

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

Firmware/RTK_Everywhere/GNSS_LG290P.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ class GNSS_LG290P : GNSS
9999
// Given the name of an RTCM message, return the array number
100100
uint8_t getRtcmMessageNumberByName(const char *msgName);
101101

102-
// Returns true if the device is in Rover mode
103-
// Currently the only two modes are Rover or Base
104-
bool inRoverMode();
105-
106102
// Return true if the GPGGA message is active
107103
bool isGgaActive();
108104

@@ -304,6 +300,10 @@ class GNSS_LG290P : GNSS
304300
// Returns full year, ie 2023, not 23.
305301
uint16_t getYear();
306302

303+
// Returns true if the device is in Rover mode
304+
// Currently the only two modes are Rover or Base
305+
bool inRoverMode();
306+
307307
bool isBlocking();
308308

309309
// Date is confirmed once we have GNSS fix

Firmware/RTK_Everywhere/GNSS_UM980.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ class GNSS_UM980 : GNSS
136136
// Given the name of an RTCM message, return the array number
137137
uint8_t getRtcmMessageNumberByName(const char *msgName);
138138

139-
// Returns true if the device is in Rover mode
140-
// Currently the only two modes are Rover or Base
141-
bool inRoverMode();
142-
143139
// Return true if the GPGGA message is active
144140
bool isGgaActive();
145141

@@ -339,6 +335,10 @@ class GNSS_UM980 : GNSS
339335
// Returns full year, ie 2023, not 23.
340336
uint16_t getYear();
341337

338+
// Returns true if the device is in Rover mode
339+
// Currently the only two modes are Rover or Base
340+
bool inRoverMode();
341+
342342
bool isBlocking();
343343

344344
// Date is confirmed once we have GNSS fix

Firmware/RTK_Everywhere/menuPorts.ino

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@ void menuPortsNoMux()
156156
printUnknown(incoming);
157157
}
158158

159+
#ifdef COMPILE_LG290P
160+
if (present.gnss_lg290p)
161+
{
162+
// Apply these changes at menu exit - to enable/disable NMEA on radio
163+
GNSS_LG290P *aLG290P = (GNSS_LG290P *)gnss;
164+
if (aLG290P->inRoverMode() == true)
165+
restartRover = true;
166+
else
167+
restartBase = true;
168+
}
169+
#endif // COMPILE_MOSAICX5
170+
159171
clearBuffer(); // Empty buffer of any newline chars
160172
}
161173

@@ -311,6 +323,7 @@ void menuPortsMultiplexed()
311323
if (present.gnss_mosaicX5)
312324
{
313325
// Apply these changes at menu exit - to enable message output on USB1
326+
// and/or enable/disable NMEA on radio
314327
GNSS_MOSAIC *mosaic = (GNSS_MOSAIC *)gnss;
315328
if (mosaic->inRoverMode() == true)
316329
restartRover = true;

0 commit comments

Comments
 (0)