File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,6 @@ class GNSS_LG290P : GNSS
99
99
// Given the name of an RTCM message, return the array number
100
100
uint8_t getRtcmMessageNumberByName (const char *msgName);
101
101
102
- // Returns true if the device is in Rover mode
103
- // Currently the only two modes are Rover or Base
104
- bool inRoverMode ();
105
-
106
102
// Return true if the GPGGA message is active
107
103
bool isGgaActive ();
108
104
@@ -304,6 +300,10 @@ class GNSS_LG290P : GNSS
304
300
// Returns full year, ie 2023, not 23.
305
301
uint16_t getYear ();
306
302
303
+ // Returns true if the device is in Rover mode
304
+ // Currently the only two modes are Rover or Base
305
+ bool inRoverMode ();
306
+
307
307
bool isBlocking ();
308
308
309
309
// Date is confirmed once we have GNSS fix
Original file line number Diff line number Diff line change @@ -136,10 +136,6 @@ class GNSS_UM980 : GNSS
136
136
// Given the name of an RTCM message, return the array number
137
137
uint8_t getRtcmMessageNumberByName (const char *msgName);
138
138
139
- // Returns true if the device is in Rover mode
140
- // Currently the only two modes are Rover or Base
141
- bool inRoverMode ();
142
-
143
139
// Return true if the GPGGA message is active
144
140
bool isGgaActive ();
145
141
@@ -339,6 +335,10 @@ class GNSS_UM980 : GNSS
339
335
// Returns full year, ie 2023, not 23.
340
336
uint16_t getYear ();
341
337
338
+ // Returns true if the device is in Rover mode
339
+ // Currently the only two modes are Rover or Base
340
+ bool inRoverMode ();
341
+
342
342
bool isBlocking ();
343
343
344
344
// Date is confirmed once we have GNSS fix
Original file line number Diff line number Diff line change @@ -156,6 +156,18 @@ void menuPortsNoMux()
156
156
printUnknown (incoming);
157
157
}
158
158
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
+
159
171
clearBuffer (); // Empty buffer of any newline chars
160
172
}
161
173
@@ -311,6 +323,7 @@ void menuPortsMultiplexed()
311
323
if (present.gnss_mosaicX5 )
312
324
{
313
325
// Apply these changes at menu exit - to enable message output on USB1
326
+ // and/or enable/disable NMEA on radio
314
327
GNSS_MOSAIC *mosaic = (GNSS_MOSAIC *)gnss;
315
328
if (mosaic->inRoverMode () == true )
316
329
restartRover = true ;
You can’t perform that action at this time.
0 commit comments