Skip to content

Commit 92ed632

Browse files
committed
Change localised to localized
1 parent b4aca7c commit 92ed632

File tree

5 files changed

+66
-66
lines changed

5 files changed

+66
-66
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,17 +1181,17 @@
11811181
</div>
11821182

11831183
<div class="form-check mt-3">
1184-
<label class="form-check-label" for="useLocalisedDistribution">Localised Distribution </label>
1185-
<input class="form-check-input" type="checkbox" value="" id="useLocalisedDistribution">
1184+
<label class="form-check-label" for="useLocalizedDistribution">Localized Distribution </label>
1185+
<input class="form-check-input" type="checkbox" value="" id="useLocalizedDistribution">
11861186
<span class="tt" data-bs-placement="right"
1187-
title="When enabled, localised corrections for your location will be used instead of the continental corrections. Default: Disabled">
1187+
title="When enabled, localized corrections for your location will be used instead of the continental corrections. Default: Disabled">
11881188
<span class="icon-info-circle text-primary ms-2"></span>
11891189
</span>
11901190
</div>
11911191

1192-
<div id="localisedDistributionTileLevelDropdown">
1193-
<label for="localisedDistributionTileLevel">Localised Distribution Tile Level:</label>
1194-
<select name="localisedDistributionTileLevel" id="localisedDistributionTileLevel" class="form-dropdown mb-2">
1192+
<div id="localizedDistributionTileLevelDropdown">
1193+
<label for="localizedDistributionTileLevel">Localized Distribution Tile Level:</label>
1194+
<select name="localizedDistributionTileLevel" id="localizedDistributionTileLevel" class="form-dropdown mb-2">
11951195
<option value="0">1000 x 1000km Sparse</option>
11961196
<option value="1">500 x 500km Sparse</option>
11971197
<option value="2">250 x 250km Sparse</option>
@@ -1200,7 +1200,7 @@
12001200
<option value="5">250 x 250km High Density</option>
12011201
</select>
12021202
<span class="tt" data-bs-placement="right"
1203-
title="Select the localised distribution tile level. High Density is recommended. Sparse may be deprecated. Default: 250 x 250km High Density">
1203+
title="Select the localized distribution tile level. High Density is recommended. Sparse may be deprecated. Default: 250 x 250km High Density">
12041204
<span class="icon-info-circle text-primary ms-2"></span>
12051205
</span>
12061206
<br>

Firmware/RTK_Everywhere/AP-Config/src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ function parseIncoming(msg) {
439439
ge("enableARPLogging").dispatchEvent(new CustomEvent('change'));
440440
ge("enableAutoFirmwareUpdate").dispatchEvent(new CustomEvent('change'));
441441
ge("enableAutoReset").dispatchEvent(new CustomEvent('change'));
442-
ge("useLocalisedDistribution").dispatchEvent(new CustomEvent('change'));
442+
ge("useLocalizedDistribution").dispatchEvent(new CustomEvent('change'));
443443

444444
updateECEFList();
445445
updateGeodeticList();
@@ -1389,12 +1389,12 @@ document.addEventListener("DOMContentLoaded", (event) => {
13891389
}
13901390
});
13911391

1392-
ge("useLocalisedDistribution").addEventListener("change", function () {
1393-
if (ge("useLocalisedDistribution").checked) {
1394-
show("localisedDistributionTileLevelDropdown");
1392+
ge("useLocalizedDistribution").addEventListener("change", function () {
1393+
if (ge("useLocalizedDistribution").checked) {
1394+
show("localizedDistributionTileLevelDropdown");
13951395
}
13961396
else {
1397-
hide("localisedDistributionTileLevelDropdown");
1397+
hide("localizedDistributionTileLevelDropdown");
13981398
}
13991399
});
14001400

Firmware/RTK_Everywhere/MQTT_Client.ino

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ MQTT_Client.ino
7171
// (ditto)
7272
// Initially we subscribe to the key distribution topic and the continental correction topic (if available)
7373
// If enabled, we also subscribe to the AssistNow MGA topic
74-
// If localised distribution is enabled and we have a 3D fix, we subscribe to the dict topic
75-
// When the dict is received, we subscribe to the nearest localised topic and unsubscribe from the continental topic
74+
// If localized distribution is enabled and we have a 3D fix, we subscribe to the dict topic
75+
// When the dict is received, we subscribe to the nearest localized topic and unsubscribe from the continental topic
7676
// When the AssistNow MGA data arrives, we unsubscribe and subscribe to AssistNow updates
7777

7878
#ifdef COMPILE_MQTT_CLIENT
@@ -124,8 +124,8 @@ const char localizedPrefix[] = "pp/ip/L"; // The localized distribution topic pr
124124
std::vector<String> mqttSubscribeTopics; // List of MQTT topics to be subscribed to
125125
std::vector<String> mqttClientSubscribedTopics; // List of topics currently subscribed to
126126

127-
String localisedDistributionDictTopic = "";
128-
String localisedDistributionTileTopic = "";
127+
String localizedDistributionDictTopic = "";
128+
String localizedDistributionTileTopic = "";
129129

130130
static MqttClient *mqttClient;
131131

@@ -289,7 +289,7 @@ void mqttClientPrintStatus()
289289
// Called when a subscribed message arrives
290290
void mqttClientReceiveMessage(int messageSize)
291291
{
292-
// The Level 3 localised distribution dictionary topic can be up to 25KB
292+
// The Level 3 localized distribution dictionary topic can be up to 25KB
293293
// The full AssistNow (MGA) topic can be ~11KB
294294
const uint16_t mqttLimit = 26000;
295295
static uint8_t *mqttData = nullptr;
@@ -327,9 +327,9 @@ void mqttClientReceiveMessage(int messageSize)
327327

328328
if (mqttCount > 0)
329329
{
330-
// Check for localisedDistributionDictTopic
331-
if ((localisedDistributionDictTopic.length() > 0)
332-
&& (strcmp(topic, localisedDistributionDictTopic.c_str()) == 0))
330+
// Check for localizedDistributionDictTopic
331+
if ((localizedDistributionDictTopic.length() > 0)
332+
&& (strcmp(topic, localizedDistributionDictTopic.c_str()) == 0))
333333
{
334334
// We should be using a JSON library to read the nodes. But JSON is
335335
// heavy on RAM and the dict could be 25KB for Level 3.
@@ -381,9 +381,9 @@ void mqttClientReceiveMessage(int messageSize)
381381
minDist = distScaled;
382382
tile[12] = 0; // Convert the second quote to NULL for snprintf
383383
char tileTopic[50];
384-
snprintf(tileTopic, sizeof(tileTopic), "%s", localisedDistributionDictTopic.c_str());
384+
snprintf(tileTopic, sizeof(tileTopic), "%s", localizedDistributionDictTopic.c_str());
385385
snprintf(&tileTopic[strlen(localizedPrefix) + 13], sizeof(tileTopic) - (strlen(localizedPrefix) + 13), "%s", tile + 1); // Start after the first quote
386-
localisedDistributionTileTopic = tileTopic;
386+
localizedDistributionTileTopic = tileTopic;
387387
}
388388
}
389389
tile = strtok_r(nullptr, ",", &preservedTile);
@@ -474,9 +474,9 @@ void mqttClientReceiveMessage(int messageSize)
474474
((strlen(settings.regionalCorrectionTopics[settings.geographicRegion]) > 0)
475475
&& (strcmp(topic, settings.regionalCorrectionTopics[settings.geographicRegion]) == 0))
476476
||
477-
// Or from the localised distribution tile topic
478-
((localisedDistributionTileTopic.length() > 0)
479-
&& (strcmp(topic, localisedDistributionTileTopic.c_str()) == 0))
477+
// Or from the localized distribution tile topic
478+
((localizedDistributionTileTopic.length() > 0)
479+
&& (strcmp(topic, localizedDistributionTileTopic.c_str()) == 0))
480480
)
481481
{
482482
// SPARTN
@@ -830,8 +830,8 @@ void mqttClientUpdate()
830830

831831
mqttSubscribeTopics.clear(); // Clear the list of MQTT topics to be subscribed to
832832
mqttClientSubscribedTopics.clear(); // Clear the list of topics currently subscribed to
833-
localisedDistributionDictTopic = "";
834-
localisedDistributionTileTopic = "";
833+
localizedDistributionDictTopic = "";
834+
localizedDistributionTileTopic = "";
835835

836836
// Subscribe to AssistNow MGA if enabled
837837
if (settings.useAssistNow)
@@ -936,21 +936,21 @@ void mqttClientUpdate()
936936
if (breakOut)
937937
break; // Break out of this state
938938

939-
// Check if localised distribution is enabled
940-
if ((strlen(settings.regionalCorrectionTopics[settings.geographicRegion]) > 0) && (settings.useLocalisedDistribution))
939+
// Check if localized distribution is enabled
940+
if ((strlen(settings.regionalCorrectionTopics[settings.geographicRegion]) > 0) && (settings.useLocalizedDistribution))
941941
{
942942
uint8_t fixType = gnssGetFixType();
943943
double latitude = gnssGetLatitude(); // degrees
944944
double longitude = gnssGetLongitude(); // degrees
945945
if (fixType >= 3) // If we have a 3D fix
946946
{
947947
// If both the dict and tile topics are empty, prepare to subscribe to the dict topic
948-
if ((localisedDistributionDictTopic.length() == 0) && (localisedDistributionTileTopic.length() == 0))
948+
if ((localizedDistributionDictTopic.length() == 0) && (localizedDistributionTileTopic.length() == 0))
949949
{
950950
float tileDelta = 2.5; // 2.5 degrees (10 degrees and 5 degrees are also possible)
951-
if ((settings.localisedDistributionTileLevel == 0) || (settings.localisedDistributionTileLevel == 3))
951+
if ((settings.localizedDistributionTileLevel == 0) || (settings.localizedDistributionTileLevel == 3))
952952
tileDelta = 10.0;
953-
if ((settings.localisedDistributionTileLevel == 1) || (settings.localisedDistributionTileLevel == 4))
953+
if ((settings.localizedDistributionTileLevel == 1) || (settings.localizedDistributionTileLevel == 4))
954954
tileDelta = 5.0;
955955

956956
float lat = latitude; // Degrees
@@ -965,34 +965,34 @@ void mqttClientUpdate()
965965

966966
char dictTopic[50];
967967
snprintf(dictTopic, sizeof(dictTopic), "%s%c%c%04d%c%05d/dict",
968-
localizedPrefix, char(0x30 + settings.localisedDistributionTileLevel),
968+
localizedPrefix, char(0x30 + settings.localizedDistributionTileLevel),
969969
(lat_i < 0) ? 'S' : 'N', abs(lat_i),
970970
(lon_i < 0) ? 'W' : 'E', abs(lon_i));
971971

972972

973-
localisedDistributionDictTopic = dictTopic;
974-
mqttSubscribeTopics.push_back(localisedDistributionDictTopic);
973+
localizedDistributionDictTopic = dictTopic;
974+
mqttSubscribeTopics.push_back(localizedDistributionDictTopic);
975975

976976
breakOut = true;
977977
}
978978

979-
// localisedDistributionTileTopic is populated by mqttClientReceiveMessage
980-
// If both the dict and tile topics are populated, prepare to subscribe to the localised tile topic
981-
// Empty localisedDistributionDictTopic afterwardds to prevent this state being repeated
982-
if ((localisedDistributionDictTopic.length() > 0) && (localisedDistributionTileTopic.length() > 0))
979+
// localizedDistributionTileTopic is populated by mqttClientReceiveMessage
980+
// If both the dict and tile topics are populated, prepare to subscribe to the localized tile topic
981+
// Empty localizedDistributionDictTopic afterwardds to prevent this state being repeated
982+
if ((localizedDistributionDictTopic.length() > 0) && (localizedDistributionTileTopic.length() > 0))
983983
{
984-
// Subscribe to the localisedDistributionTileTopic
985-
mqttSubscribeTopics.push_back(localisedDistributionTileTopic);
986-
// Unsubscribe from the localisedDistributionDictTopic
987-
std::vector<String>::iterator pos = std::find(mqttSubscribeTopics.begin(), mqttSubscribeTopics.end(), localisedDistributionDictTopic);
984+
// Subscribe to the localizedDistributionTileTopic
985+
mqttSubscribeTopics.push_back(localizedDistributionTileTopic);
986+
// Unsubscribe from the localizedDistributionDictTopic
987+
std::vector<String>::iterator pos = std::find(mqttSubscribeTopics.begin(), mqttSubscribeTopics.end(), localizedDistributionDictTopic);
988988
if (pos != mqttSubscribeTopics.end())
989989
mqttSubscribeTopics.erase(pos);
990990
// Unsubscribe from the continental corrections
991991
pos = std::find(mqttSubscribeTopics.begin(), mqttSubscribeTopics.end(), String(settings.regionalCorrectionTopics[settings.geographicRegion]));
992992
if (pos != mqttSubscribeTopics.end())
993993
mqttSubscribeTopics.erase(pos);
994994

995-
localisedDistributionDictTopic = ""; // Empty localisedDistributionDictTopic to prevent this state being repeated
995+
localizedDistributionDictTopic = ""; // Empty localizedDistributionDictTopic to prevent this state being repeated
996996
breakOut = true;
997997
}
998998

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -911,10 +911,10 @@ void menuPointPerfect()
911911
else
912912
systemPrintln("No keys");
913913

914-
if ((settings.useLocalisedDistribution) && (localisedDistributionTileTopic.length() > 0))
914+
if ((settings.useLocalizedDistribution) && (localizedDistributionTileTopic.length() > 0))
915915
{
916-
systemPrint("Most recent localised distribution topic: ");
917-
systemPrintln(localisedDistributionTileTopic.c_str()); // From MQTT_Client.ino
916+
systemPrint("Most recent localized distribution topic: ");
917+
systemPrintln(localizedDistributionTileTopic.c_str()); // From MQTT_Client.ino
918918
}
919919

920920
// How this works:
@@ -962,17 +962,17 @@ void menuPointPerfect()
962962
systemPrintln("Requested");
963963
else
964964
systemPrintln("Not requested");
965-
systemPrint("4) Use localised distribution: ");
966-
if (settings.useLocalisedDistribution == true)
965+
systemPrint("4) Use localized distribution: ");
966+
if (settings.useLocalizedDistribution == true)
967967
systemPrintln("Enabled");
968968
else
969969
systemPrintln("Disabled");
970-
if (settings.useLocalisedDistribution)
970+
if (settings.useLocalizedDistribution)
971971
{
972-
systemPrint("5) Localised distribution tile level: ");
973-
systemPrint(settings.localisedDistributionTileLevel);
972+
systemPrint("5) Localized distribution tile level: ");
973+
systemPrint(settings.localizedDistributionTileLevel);
974974
systemPrint(" (");
975-
systemPrint(localisedDistributionTileLevelNames[settings.localisedDistributionTileLevel]);
975+
systemPrint(localizedDistributionTileLevelNames[settings.localizedDistributionTileLevel]);
976976
systemPrintln(")");
977977
}
978978
if (productVariant != RTK_FACET_MOSAIC)
@@ -1018,13 +1018,13 @@ void menuPointPerfect()
10181018
}
10191019
else if (incoming == 4 && pointPerfectIsEnabled())
10201020
{
1021-
settings.useLocalisedDistribution ^= 1;
1021+
settings.useLocalizedDistribution ^= 1;
10221022
}
1023-
else if (incoming == 5 && pointPerfectIsEnabled() && settings.useLocalisedDistribution)
1023+
else if (incoming == 5 && pointPerfectIsEnabled() && settings.useLocalizedDistribution)
10241024
{
1025-
settings.localisedDistributionTileLevel++;
1026-
if (settings.localisedDistributionTileLevel >= LOCALISED_DISTRIBUTION_TILE_LEVELS)
1027-
settings.localisedDistributionTileLevel = 0;
1025+
settings.localizedDistributionTileLevel++;
1026+
if (settings.localizedDistributionTileLevel >= LOCALIZED_DISTRIBUTION_TILE_LEVELS)
1027+
settings.localizedDistributionTileLevel = 0;
10281028
}
10291029
else if (incoming == 'a' && pointPerfectIsEnabled() && (productVariant != RTK_FACET_MOSAIC))
10301030
{

Firmware/RTK_Everywhere/settings.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,17 +1369,17 @@ struct Settings
13691369

13701370
bool outputTipAltitude = false; // If enabled, subtract the pole length and APC from the GNSS receiver's reported altitude
13711371

1372-
// Localised distribution
1373-
bool useLocalisedDistribution = false;
1374-
uint8_t localisedDistributionTileLevel = 5;
1372+
// Localized distribution
1373+
bool useLocalizedDistribution = false;
1374+
uint8_t localizedDistributionTileLevel = 5;
13751375
bool useAssistNow = false;
13761376

13771377
// Add new settings to appropriate group above or create new group
13781378
// Then also add to the same group in rtkSettingsEntries below
13791379
} settings;
13801380

1381-
const uint8_t LOCALISED_DISTRIBUTION_TILE_LEVELS = 6;
1382-
const char *localisedDistributionTileLevelNames[LOCALISED_DISTRIBUTION_TILE_LEVELS] = {
1381+
const uint8_t LOCALIZED_DISTRIBUTION_TILE_LEVELS = 6;
1382+
const char *localizedDistributionTileLevelNames[LOCALIZED_DISTRIBUTION_TILE_LEVELS] = {
13831383
"1000 x 1000km sparse",
13841384
"500 x 500km sparse",
13851385
"250 x 250km sparse",
@@ -1878,9 +1878,9 @@ const RTK_Settings_Entry rtkSettingsEntries[] =
18781878

18791879
{ 0, 0, 1, 0, 1, 1, 1, 1, _uint32_t, 0, & settings.outputTipAltitude, "outputTipAltitude", },
18801880

1881-
// Localised distribution
1882-
{ 0, 1, 1, 0, 1, 1, 1, 1, _bool, 0, & settings.useLocalisedDistribution, "useLocalisedDistribution", },
1883-
{ 0, 1, 1, 0, 1, 1, 1, 1, _uint8_t, 0, & settings.localisedDistributionTileLevel, "localisedDistributionTileLevel", },
1881+
// Localized distribution
1882+
{ 0, 1, 1, 0, 1, 1, 1, 1, _bool, 0, & settings.useLocalizedDistribution, "useLocalizedDistribution", },
1883+
{ 0, 1, 1, 0, 1, 1, 1, 1, _uint8_t, 0, & settings.localizedDistributionTileLevel, "localizedDistributionTileLevel", },
18841884
{ 0, 1, 1, 0, 1, 1, 0, 1, _bool, 0, & settings.useAssistNow, "useAssistNow", },
18851885

18861886
// Add new settings to appropriate group above or create new group

0 commit comments

Comments
 (0)