Skip to content

Commit 41544a7

Browse files
committed
Move MSM7 config to enableRTCMRover()
1 parent 5907d15 commit 41544a7

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Firmware/RTK_Everywhere/GNSS_LG290P.ino

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,13 @@ bool GNSS_LG290P::configureRover()
365365

366366
response &= setMinCnoRadio(settings.minCNO);
367367

368-
//If we are on a platform that supports tilt
368+
// If we are on a platform that supports tilt
369369
if (present.tiltPossible == true)
370370
{
371-
//And tilt is present and enabled
371+
// And tilt is present and enabled
372372
if (present.imu_im19 == true && settings.enableTiltCompensation == true)
373373
{
374-
//Configure GNSS to support the tilt sensor
374+
// Configure GNSS to support the tilt sensor
375375

376376
// Tilt sensor requires 5Hz at a minimum
377377
if (settings.measurementRateMs > 200)
@@ -1000,18 +1000,17 @@ bool GNSS_LG290P::enableRTCMRover()
10001000
}
10011001

10021002
// If any RTCM message is enabled, send CFGRTCM
1003-
// PQTMCFGRTCM only controls RTCM-1005 type messages, not RTCM-107x MSM messages (confusingly)
10041003
if (enableRTCM == true)
10051004
{
10061005
if (settings.debugCorrections)
10071006
systemPrintf("Enabling Rover RTCM MSM output with rate of %d\r\n", minimumRtcmRate);
10081007

1009-
// Enable MSM4, output at a rate equal to the minimum RTCM rate (EPH Mode = 2)
1008+
// Enable MSM7 (for faster PPP CSRS results), output at a rate equal to the minimum RTCM rate (EPH Mode = 2)
10101009
// PQTMCFGRTCM, W, <MSM_Type>, <MSM_Mode>, <MSM_ElevThd>, <Reserved>, <Reserved>, <EPH_Mode>, <EPH_Interval>
1011-
// We could set the MSM_ElevThd to (settings.minElev * -1) but there may be unintended consequences
1010+
// Set MSM_ElevThd to 15 degrees from rftop suggestion
10121011

10131012
char msmCommand[40] = {0};
1014-
snprintf(msmCommand, sizeof(msmCommand), "PQTMCFGRTCM,W,4,0,-90,07,06,2,%d", minimumRtcmRate);
1013+
snprintf(msmCommand, sizeof(msmCommand), "PQTMCFGRTCM,W,7,0,15,07,06,2,%d", minimumRtcmRate);
10151014

10161015
// PQTMCFGRTCM fails to respond with OK over UART2 of LG290P, so don't look for it
10171016
_lg290p->sendOkCommand(msmCommand);
@@ -1930,8 +1929,7 @@ void GNSS_LG290P::menuMessages()
19301929
setRtcmRoverMessageRateByName("RTCM3-109X", rtcmReportRate);
19311930
// setRtcmRoverMessageRateByName("RTCM3-112X", rtcmReportRate); //BeiDou not used by CSRS-PPP
19321931

1933-
// Default is MSM4. Change to MSM7 to aid in faster PPP CSRS results.
1934-
_lg290p->sendOkCommand("$PQTMCFGRTCM","W,7,0,15,07,06,1,0"); // Enable MSM7, 15 degree requirement on satellites
1932+
// MSM7 is set during enableRTCMRover()
19351933

19361934
// Override settings for PPP logging
19371935
setElevation(15);

0 commit comments

Comments
 (0)