@@ -26,15 +26,15 @@ typedef struct
2626 const char msgTextName[11 ];
2727 const float msgDefaultRate;
2828 const uint8_t firmwareVersionSupported; // The minimum version this message is supported.
29- // 0 = all versions.
30- // 9999 = Not supported
29+ // 0 = all versions.
30+ // 9999 = Not supported
3131} lg290pMsg;
3232
3333// Static array containing all the compatible messages
3434// Rate = Output once every N position fix(es).
3535const lg290pMsg lgMessagesNMEA[] = {
36- {" RMC" , 1 , 0 }, {" GGA" , 1 , 0 }, {" GSV" , 1 , 0 }, {" GSA" , 1 , 0 }, {" VTG" , 1 , 0 }, { " GLL " , 1 , 0 },
37- {" GBS" , 0 , 4 }, {" GNS" , 0 , 4 }, {" GST" , 1 , 4 }, {" ZDA" , 0 , 4 },
36+ {" RMC" , 1 , 0 }, {" GGA" , 1 , 0 }, {" GSV" , 1 , 0 }, {" GSA" , 1 , 0 }, {" VTG" , 1 , 0 },
37+ {" GLL " , 1 , 0 }, { " GBS" , 0 , 4 }, {" GNS" , 0 , 4 }, {" GST" , 1 , 4 }, {" ZDA" , 0 , 4 },
3838};
3939
4040const lg290pMsg lgMessagesRTCM[] = {
@@ -44,16 +44,18 @@ const lg290pMsg lgMessagesRTCM[] = {
4444
4545 {" RTCM3-1020" , 0 , 0 },
4646
47- {" RTCM3-1033" , 0 , 4 }, // v4 and above
47+ {" RTCM3-1033" , 0 , 4 }, // v4 and above
4848
4949 {" RTCM3-1041" , 0 , 0 }, {" RTCM3-1042" , 0 , 0 }, {" RTCM3-1044" , 0 , 0 }, {" RTCM3-1046" , 0 , 0 },
5050
51- {" RTCM3-107X" , 1 , 0 }, {" RTCM3-108X" , 1 , 0 }, {" RTCM3-109X" , 1 , 0 }, {" RTCM3-111X" , 1 , 0 }, {" RTCM3-112X" , 1 , 0 }, {" RTCM3-113X" , 1 , 0 },
51+ {" RTCM3-107X" , 1 , 0 }, {" RTCM3-108X" , 1 , 0 }, {" RTCM3-109X" , 1 , 0 }, {" RTCM3-111X" , 1 , 0 },
52+ {" RTCM3-112X" , 1 , 0 }, {" RTCM3-113X" , 1 , 0 },
5253};
5354
5455// Quectel Proprietary messages
5556const lg290pMsg lgMessagesPQTM[] = {
56- {" EPE" , 0 , 0 }, {" PVT" , 0 , 0 },
57+ {" EPE" , 0 , 0 },
58+ {" PVT" , 0 , 0 },
5759};
5860
5961#define MAX_LG290P_NMEA_MSG (sizeof (lgMessagesNMEA) / sizeof (lg290pMsg))
@@ -125,6 +127,11 @@ class GNSS_LG290P : GNSS
125127 // Reset to Low Bandwidth Link (1074/1084/1094/1124 0.5Hz & 1005/1230 0.1Hz)
126128 void baseRtcmLowDataRate ();
127129
130+ // Check if a given baud rate is supported by this module
131+ bool baudIsAllowed (uint32_t baudRate);
132+ uint32_t baudGetMinimum ();
133+ uint32_t baudGetMaximum ();
134+
128135 // Connect to GNSS and identify particulars
129136 void begin ();
130137
0 commit comments