Skip to content

Commit

Permalink
Merge pull request #272 from sparkfun/release_candidate
Browse files Browse the repository at this point in the history
Release v1.0
  • Loading branch information
nseidle authored May 1, 2024
2 parents e45ae0b + fbd45a6 commit 42e84f2
Show file tree
Hide file tree
Showing 54 changed files with 10,319 additions and 8,489 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/non-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ env:
FILENAME_PREFIX: RTK_Everywhere_Firmware
FIRMWARE_VERSION_MAJOR: 0
FIRMWARE_VERSION_MINOR: 9
POINTPERFECT_LBAND_PAID_TOKEN: ${{ secrets.POINTPERFECT_LBAND_PAID_TOKEN }}
POINTPERFECT_LBAND_FREE_TOKEN: ${{ secrets.POINTPERFECT_LBAND_FREE_TOKEN }}
POINTPERFECT_IP_FREE_TOKEN: ${{ secrets.POINTPERFECT_IP_FREE_TOKEN }}
POINTPERFECT_IP_PAID_TOKEN: ${{ secrets.POINTPERFECT_IP_PAID_TOKEN }}
POINTPERFECT_LBAND_TOKEN: ${{ secrets.POINTPERFECT_LBAND_TOKEN }}
POINTPERFECT_IP_TOKEN: ${{ secrets.POINTPERFECT_IP_TOKEN }}

jobs:
build:
Expand Down Expand Up @@ -142,7 +140,7 @@ jobs:
run: arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${{ env.DEBUG_LEVEL }},PSRAM=enabled ./Firmware/RTK_Everywhere/RTK_Everywhere.ino
--build-property build.partitions=RTKEverywhere
--build-property upload.maximum_size=3145728
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_LBAND_PAID_TOKEN=$POINTPERFECT_LBAND_PAID_TOKEN\" \"-DPOINTPERFECT_LBAND_FREE_TOKEN=$POINTPERFECT_LBAND_FREE_TOKEN\" \"-DPOINTPERFECT_IP_PAID_TOKEN=$POINTPERFECT_IP_PAID_TOKEN\" \"-DPOINTPERFECT_IP_FREE_TOKEN=$POINTPERFECT_IP_FREE_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
--build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_LBAND_TOKEN=$POINTPERFECT_LBAND_TOKEN\" \"-DPOINTPERFECT_IP_TOKEN=$POINTPERFECT_IP_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
--export-binaries

- name: Create artifact name
Expand Down
925 changes: 575 additions & 350 deletions Firmware/RTK_Everywhere/AP-Config/index.html

Large diffs are not rendered by default.

797 changes: 543 additions & 254 deletions Firmware/RTK_Everywhere/AP-Config/src/main.js

Large diffs are not rendered by default.

40 changes: 16 additions & 24 deletions Firmware/RTK_Everywhere/Base.ino
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
// This function gets called when an RTCM packet passes parser check in processUart1Message() task
// Pass data along to NTRIP Server, or ESP-NOW radio
void processRTCM(uint8_t *rtcmData, uint16_t dataLength)
{
// Give this byte to the various possible transmission methods
for (int x = 0; x < dataLength; x++)
{
for (int serverIndex = 0; serverIndex < NTRIP_SERVER_MAX; serverIndex++)
ntripServerProcessRTCM(serverIndex, rtcmData[x]);
}

for (int x = 0; x < dataLength; x++)
espnowProcessRTCM(rtcmData[x]);

rtcmLastPacketSent = millis();
rtcmPacketsSent++;

// This function gets called from the SparkFun u-blox Arduino Library.
// As each RTCM byte comes in you can specify what to do with it
// Useful for passing the RTCM correction data to a radio, Ntrip broadcaster, etc.
void DevUBLOXGNSS::processRTCM(uint8_t incoming)
{
// Check for too many digits
if (settings.enableResetDisplay == true)
{
Expand All @@ -16,22 +26,4 @@ void DevUBLOXGNSS::processRTCM(uint8_t incoming)
if (rtcmPacketsSent > 999)
rtcmPacketsSent = 1; // Trim to three digits to avoid log icon and increasing bar
}

// Determine if we should check this byte with the RTCM checker or simply pass it along
bool passAlongIncomingByte = true;

if (settings.enableRtcmMessageChecking == true)
passAlongIncomingByte &= checkRtcmMessage(incoming);

// Give this byte to the various possible transmission methods
if (passAlongIncomingByte)
{
rtcmLastReceived = millis();
rtcmBytesSent++;

for (int serverIndex = 0; serverIndex < NTRIP_SERVER_MAX; serverIndex++)
ntripServerProcessRTCM(serverIndex, incoming);

espnowProcessRTCM(incoming);
}
}
}
Loading

0 comments on commit 42e84f2

Please sign in to comment.