Skip to content

Commit e71998e

Browse files
committed
Implement the RTK_UM980 class
1 parent 2184fbf commit e71998e

File tree

4 files changed

+1624
-651
lines changed

4 files changed

+1624
-651
lines changed

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ void beginBoard()
189189
}
190190
else if (productVariant == RTK_TORCH)
191191
{
192+
// Specify the GNSS radio
193+
gnss = (GNSS *) new RTK_UM980();
194+
192195
present.psram_2mb = true;
193196
present.gnss_um980 = true;
194197
present.radio_lora = true;

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,8 @@ bool usbSerialIncomingRtcm; // Incoming RTCM over the USB serial port
376376
#define RTCM_CORRECTION_INPUT_TIMEOUT (2 * 1000)
377377
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
378378

379-
// GNSS configuration - UM980
379+
// Extensible Message Parser
380380
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
381-
#ifdef COMPILE_UM980
382-
#include <SparkFun_Unicore_GNSS_Arduino_Library.h> //http://librarymanager/All#SparkFun_Unicore_GNSS
383-
#endif // COMPILE_UM980
384-
385381
#include <SparkFun_Extensible_Message_Parser.h> //http://librarymanager/All#SparkFun_Extensible_Message_Parser
386382
SEMP_PARSE_STATE *rtkParse = nullptr;
387383
SEMP_PARSE_STATE *sbfParse = nullptr; // mosaic-X5
@@ -1007,9 +1003,9 @@ void setup()
10071003
if (checkUpdateLoraFirmware() == true) // Check if updateLoraFirmware.txt exists
10081004
beginLoraFirmwareUpdate();
10091005

1010-
DMW_b("checkUpdateUm980Firmware");
1011-
if (checkUpdateUm980Firmware() == true) // Check if updateLoraFirmware.txt exists
1012-
beginUm980FirmwareUpdate();
1006+
DMW_b("um980FirmwareCheckUpdate");
1007+
if (um980FirmwareCheckUpdate() == true) // Check if updateUm980Firmware.txt exists
1008+
um980FirmwareBeginUpdate();
10131009

10141010
DMW_b("checkConfigureViaEthernet");
10151011
configureViaEthernet =

0 commit comments

Comments
 (0)