Skip to content

Commit f55f5a2

Browse files
committed
Merge branch 'release_candidate' into AddFlexLoRa
2 parents 12daedf + f5ba697 commit f55f5a2

File tree

14 files changed

+176
-20
lines changed

14 files changed

+176
-20
lines changed

.github/workflows/non-release-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
POINTPERFECT_LBAND_TOKEN: ${{ secrets.POINTPERFECT_LBAND_TOKEN }}
1111
POINTPERFECT_IP_TOKEN: ${{ secrets.POINTPERFECT_IP_TOKEN }}
1212
POINTPERFECT_LBAND_IP_TOKEN: ${{ secrets.POINTPERFECT_LBAND_IP_TOKEN }}
13+
POINTPERFECT_RTCM_TOKEN: ${{ secrets.POINTPERFECT_RTCM_TOKEN }}
1314
CORE_VERSION: 3.0.7
1415

1516
jobs:
@@ -155,7 +156,7 @@ jobs:
155156
run: arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=${{ env.DEBUG_LEVEL }},PSRAM=enabled ./Firmware/RTK_Everywhere/RTK_Everywhere.ino
156157
--build-property build.partitions=RTKEverywhere
157158
--build-property upload.maximum_size=4055040
158-
--build-property "compiler.cpp.extra_flags=-MMD -c \"-DPOINTPERFECT_LBAND_TOKEN=$POINTPERFECT_LBAND_TOKEN\" \"-DPOINTPERFECT_IP_TOKEN=$POINTPERFECT_IP_TOKEN\" \"-DPOINTPERFECT_LBAND_IP_TOKEN=$POINTPERFECT_LBAND_IP_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
159+
--build-property "compiler.cpp.extra_flags=-MMD -c \"-DPOINTPERFECT_LBAND_TOKEN=$POINTPERFECT_LBAND_TOKEN\" \"-DPOINTPERFECT_IP_TOKEN=$POINTPERFECT_IP_TOKEN\" \"-DPOINTPERFECT_LBAND_IP_TOKEN=$POINTPERFECT_LBAND_IP_TOKEN\" \"-DPOINTPERFECT_RTCM_TOKEN=$POINTPERFECT_RTCM_TOKEN\" \"-DFIRMWARE_VERSION_MAJOR=$FIRMWARE_VERSION_MAJOR\" \"-DFIRMWARE_VERSION_MINOR=$FIRMWARE_VERSION_MINOR\" \"-DENABLE_DEVELOPER=${{ env.ENABLE_DEVELOPER }}\""
159160
--export-binaries
160161

161162
- name: Create artifact name

Firmware/RTK_Everywhere/Begin.ino

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,10 +1529,6 @@ void beginSystemState()
15291529

15301530
// Return to either Base or Rover Not Started. The last state previous to power down.
15311531
systemState = settings.lastState;
1532-
1533-
// If the setting is not set, override with default
1534-
if (settings.antennaPhaseCenter_mm == 0.0)
1535-
settings.antennaPhaseCenter_mm = present.antennaPhaseCenter_mm;
15361532
}
15371533
else if (productVariant == RTK_POSTCARD)
15381534
{

Firmware/RTK_Everywhere/GNSS_UM980.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ bool GNSS_UM980::configureOnce()
252252
response &= _um980->setPortBaudrate("COM2", 115200); // COM2 is connected to the IMU
253253
response &= _um980->setPortBaudrate("COM3", 115200); // COM3 is connected to the switch, then ESP32
254254

255-
// For now, let's not change the baud rate of the interface. We'll be using the default 115200 for now.
256-
response &= setBaudRateCOM3(settings.dataPortBaud); // COM3 is connected to ESP UART2
255+
// // For now, let's not change the baud rate of the interface. We'll be using the default 115200 for now.
256+
// response &= setBaudRateCOM3(settings.dataPortBaud); // COM3 is connected to ESP UART2
257257

258258
// Enable PPS signal with a width of 200ms, and a period of 1 second
259259
response &= _um980->enablePPS(200000, 1000); // widthMicroseconds, periodMilliseconds
-232 KB
Binary file not shown.
-12.1 KB
Binary file not shown.
-19 KB
Binary file not shown.
6.69 KB
Binary file not shown.

Firmware/RTK_Everywhere/System.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ void settingsToDefaults()
401401
{
402402
static const Settings defaultSettings;
403403
settings = defaultSettings;
404+
405+
checkArrayDefaults(); // This does not call recordSystemSettings
406+
checkGNSSArrayDefaults(); // This calls recordSystemSettings if any GNSS defaults are applied
404407
}
405408

406409
// Periodically print information if enabled

Firmware/RTK_Everywhere/WebServer.ino

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static int last_ws_fd;
6363

6464
static TaskHandle_t updateWebServerTaskHandle;
6565
static const uint8_t updateWebServerTaskPriority = 0; // 3 being the highest, and 0 being the lowest
66-
static const int webServerTaskStackSize = 1024 * 4;
67-
static const int webSocketStackSize = 1024 * 20; // Needs to be large enough to hold the file manager file list
66+
static const int webServerTaskStackSize = 1024 * 4; // Needs to be large enough to hold the file manager file list
67+
static const int webSocketStackSize = 1024 * 20; // Needs to be large enough to hold the full settingsCSV
6868

6969
// Inspired by:
7070
// https://github.com/espressif/arduino-esp32/blob/master/libraries/WebServer/examples/MultiHomedServers/MultiHomedServers.ino
@@ -1375,6 +1375,34 @@ static const httpd_uri_t ws = {.uri = "/ws",
13751375
//----------------------------------------
13761376
void httpdDisplayConfig(struct httpd_config *config)
13771377
{
1378+
/*
1379+
httpd_config object:
1380+
5: task_priority
1381+
20480: stack_size
1382+
2147483647: core_id
1383+
81: server_port
1384+
32768: ctrl_port
1385+
7: max_open_sockets
1386+
8: max_uri_handlers
1387+
8: max_resp_headers
1388+
5: backlog_conn
1389+
false: lru_purge_enable
1390+
5: recv_wait_timeout
1391+
5: send_wait_timeout
1392+
0x0: global_user_ctx
1393+
0x0: global_user_ctx_free_fn
1394+
0x0: global_transport_ctx
1395+
0x0: global_transport_ctx_free_fn
1396+
false: enable_so_linger
1397+
0: linger_timeout
1398+
false: keep_alive_enable
1399+
0: keep_alive_idle
1400+
0: keep_alive_interval
1401+
0: keep_alive_count
1402+
0x0: open_fn
1403+
0x0: close_fn
1404+
0x0: uri_match_fn
1405+
*/
13781406
systemPrintf("httpd_config object:\r\n");
13791407
systemPrintf("%10d: task_priority\r\n", config->task_priority);
13801408
systemPrintf("%10d: stack_size\r\n", config->stack_size);
@@ -1416,7 +1444,7 @@ bool websocketServerStart(void)
14161444
// Use different ports for websocket and webServer - use port 81 for the websocket - also defined in main.js
14171445
config.server_port = 81;
14181446

1419-
// Increase the stack size from 4K to handle page processing
1447+
// Increase the stack size from 4K to handle page processing (settingsCSV)
14201448
config.stack_size = webSocketStackSize;
14211449

14221450
// Start the httpd server

Firmware/RTK_Everywhere/form.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// python main_js_zipper.py
2727

2828
static const uint8_t main_js[] PROGMEM = {
29-
0x1F, 0x8B, 0x08, 0x08, 0x7C, 0x6B, 0x9B, 0x68, 0x02, 0xFF, 0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x6A,
29+
0x1F, 0x8B, 0x08, 0x08, 0x62, 0x84, 0x9D, 0x68, 0x02, 0xFF, 0x6D, 0x61, 0x69, 0x6E, 0x2E, 0x6A,
3030
0x73, 0x2E, 0x67, 0x7A, 0x69, 0x70, 0x00, 0xED, 0x7D, 0xEB, 0x5A, 0x1B, 0x39, 0xB6, 0xE8, 0xFF,
3131
0x3C, 0x85, 0xC6, 0x67, 0xCE, 0xD8, 0x0C, 0xC6, 0x94, 0xCD, 0x25, 0x10, 0x42, 0xF6, 0x21, 0x40,
3232
0x12, 0xCE, 0x70, 0x3B, 0x98, 0x74, 0x77, 0xBA, 0x27, 0x9B, 0x5D, 0xD8, 0xC2, 0xD4, 0x8E, 0x5D,
@@ -1076,7 +1076,7 @@ static const uint8_t main_js[] PROGMEM = {
10761076
// python index_html_zipper.py
10771077

10781078
static const uint8_t index_html[] PROGMEM = {
1079-
0x1F, 0x8B, 0x08, 0x08, 0x7C, 0x6B, 0x9B, 0x68, 0x02, 0xFF, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x2E,
1079+
0x1F, 0x8B, 0x08, 0x08, 0x62, 0x84, 0x9D, 0x68, 0x02, 0xFF, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x2E,
10801080
0x68, 0x74, 0x6D, 0x6C, 0x2E, 0x67, 0x7A, 0x69, 0x70, 0x00, 0xED, 0x7D, 0x59, 0x76, 0xDB, 0xCA,
10811081
0x92, 0xE0, 0xFF, 0x5D, 0x45, 0x16, 0xAB, 0xBB, 0x2C, 0x57, 0x8B, 0x14, 0x48, 0x4A, 0xB2, 0xAC,
10821082
0x67, 0xEB, 0x1C, 0x6A, 0xB0, 0xAD, 0x7E, 0xB2, 0xCC, 0x12, 0xE5, 0x77, 0x87, 0x3E, 0xDD, 0xF7,

0 commit comments

Comments
 (0)