Skip to content

Commit 615cb49

Browse files
committed
Extend printed name of L-Band North America
1 parent 0cfa63d commit 615cb49

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,23 @@ enum PP_Encoding
5555
};
5656

5757
// PointPerfect offers are variety of services
58-
// Each service will have a printable name
58+
// Each service will have a printable name, delivery method, and encoding
5959
typedef struct
6060
{
61-
const char serviceName[23];
61+
const char serviceName[30];
6262
PP_ModelType modelType;
6363
PP_DeliveryMethod deliveryMethod;
6464
PP_Encoding encoding;
6565
} PP_Service;
6666

67-
// Static array containing all the compatible messages
68-
// Rate = Output once every N position fix(es).
67+
// The various services offered by PointPerfect
6968
const PP_Service ppServices[] = {
7069
{"Disabled", PP_MODEL_NONE, PP_DELIVERY_NONE, PP_ENCODING_NONE}, // Do not use PointPerfect corrections
7170
{"Flex NTRIP/RTCM", PP_MODEL_SSR, PP_DELIVERY_NTRIP, PP_ENCODING_RTCM}, // Uses "ZTP-RTCM-100" profile
72-
{"Flex L-Band NA", PP_MODEL_SSR, PP_DELIVERY_LBAND_NA, PP_ENCODING_SPARTN}, // Uses "ZTP-LBand" profile
71+
{"Flex L-Band North America", PP_MODEL_SSR, PP_DELIVERY_LBAND_NA, PP_ENCODING_SPARTN}, // Uses "ZTP-LBand" profile
7372
{"Global", PP_MODEL_SSR, PP_DELIVERY_LBAND_GLOBAL, PP_ENCODING_SPARTN}, // Uses "ZTP-Global" profile
7473
{"Live", PP_MODEL_OSR, PP_DELIVERY_NTRIP, PP_ENCODING_RTCM}, // Uses "ZTP-Live" profile
75-
{"Flex MQTT (Deprecated)", PP_MODEL_SSR, PP_DELIVERY_MQTT, PP_ENCODING_SPARTN}, // Deprecated
76-
// "ZTP-IP" profile deprecated - This was used for getting corrections over IP using MQTT transport (no longer
77-
// supported on new accounts)
74+
{"Flex MQTT (Deprecated)", PP_MODEL_SSR, PP_DELIVERY_MQTT, PP_ENCODING_SPARTN}, // Uses "ZTP-IP" profile, now deprecated
7875
// "ZTP-RTCM-100-Trial" profile deprecated
7976
// "ZTP-LBand+IP" profile deprecated
8077
};
@@ -320,6 +317,8 @@ const char *printDeviceId()
320317
// Present user with list of available services, list depends on platform
321318
void menuPointPerfectSelectService()
322319
{
320+
clearBuffer(); // Empty buffer of any newline chars
321+
323322
while (1)
324323
{
325324
systemPrintln();
@@ -342,11 +341,8 @@ void menuPointPerfectSelectService()
342341
{
343342
settings.pointPerfectService = incoming - 1; // Align incoming to array
344343

345-
// Many functions depend on settings.enablePointPerfectCorrections so continue to support it
346-
settings.enablePointPerfectCorrections = settings.pointPerfectService;
347-
348344
restartRover = true; // Require a rover restart to enable / disable RTCM for PPL
349-
settings.requestKeyUpdate = settings.enablePointPerfectCorrections; // Force a key update - or don't
345+
settings.requestKeyUpdate = settings.pointPerfectService; // Force a key update - or don't
350346

351347
break; // Exit menu once selected
352348
}

0 commit comments

Comments
 (0)