Skip to content

Commit bb584c4

Browse files
authored
Merge pull request #485 from LeeLeahy2/rtk-mosaic-class
Implement the GNSS_MOSAIC class
2 parents 23fc1cf + 10cde36 commit bb584c4

File tree

9 files changed

+2197
-1140
lines changed

9 files changed

+2197
-1140
lines changed

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ void beginBoard()
436436
// mosaic COM3 is connected to the Data connector - via the multiplexer
437437
// mosaic COM3 is available as a generic COM port. The firmware configures the baud. Nothing else.
438438

439+
// Specify the GNSS radio
440+
gnss = (GNSS *) new GNSS_MOSAIC();
441+
439442
present.psram_4mb = true;
440443
present.gnss_mosaicX5 = true;
441444
present.display_i2c0 = true;

Firmware/RTK_Everywhere/GNSS.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class GNSS
2121
uint8_t _hour; // Hours for 24 hour clock
2222
uint8_t _minute;
2323
uint8_t _second;
24+
uint8_t _leapSeconds;
2425
uint16_t _millisecond; // Limited to first two digits
2526
uint32_t _nanosecond;
2627

@@ -38,6 +39,8 @@ class GNSS
3839
unsigned long _pvtArrivalMillis;
3940
bool _pvtUpdated;
4041

42+
unsigned long _autoBaseStartTimer; // Tracks how long the base auto / averaging mode has been running
43+
4144
// Setup the general configuration of the GNSS
4245
// Not Rover or Base specific (ie, baud rates)
4346
// Outputs:
@@ -49,10 +52,6 @@ class GNSS
4952

5053
public:
5154

52-
// Temporarily make these public
53-
unsigned long _autoBaseStartTimer; // Tracks how long the base auto / averaging mode has been running
54-
uint8_t _leapSeconds;
55-
5655
// Constructor
5756
GNSS() : _leapSeconds(18), _pvtArrivalMillis(0), _pvtUpdated(0)
5857
{

0 commit comments

Comments
 (0)