Skip to content

Commit 0808ece

Browse files
committed
Re-enable RXM logging without callbacks.
1 parent 3e9a617 commit 0808ece

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

Firmware/RTK_Surveyor/System.ino

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,27 @@ bool configureUbloxModule()
121121
}
122122

123123
//Based on current settings, update the logging options within the GNSS library
124-
i2cGNSS.logRXMRAWX(settings.log.rawx);
125-
i2cGNSS.logRXMSFRBX(settings.log.sfrbx);
124+
if(settings.log.rawx == true)
125+
{
126+
i2cGNSS.setAutoRXMRAWX(true, false); // Enable automatic RXM RAWX messages: without callback; without implicit update
127+
i2cGNSS.logRXMRAWX(true);
128+
}
129+
else
130+
{
131+
i2cGNSS.setAutoRXMRAWX(false); // Disable automatic RXM RAWX messages
132+
i2cGNSS.logRXMRAWX(false);
133+
}
134+
135+
if(settings.log.sfrbx == true)
136+
{
137+
i2cGNSS.setAutoRXMSFRBX(true, false); // Enable automatic RXM SFRBX messages: without callback; without implicit update
138+
i2cGNSS.logRXMSFRBX(true);
139+
}
140+
else
141+
{
142+
i2cGNSS.setAutoRXMSFRBX(false); // Disable automatic RXM SFRBX messages
143+
i2cGNSS.logRXMSFRBX(false);
144+
}
126145

127146
if (logNMEAMessages() == true)
128147
i2cGNSS.setNMEALoggingMask(SFE_UBLOX_FILTER_NMEA_ALL); // Enable logging of all enabled NMEA messages

Firmware/RTK_Surveyor/menuLog.ino

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,27 @@ void menuLog()
129129
while (Serial.available()) Serial.read(); //Empty buffer of any newline chars
130130

131131
//Based on current settings, update the logging options within the GNSS library
132-
i2cGNSS.logRXMRAWX(settings.log.rawx);
133-
i2cGNSS.logRXMSFRBX(settings.log.sfrbx);
132+
if(settings.log.rawx == true)
133+
{
134+
i2cGNSS.setAutoRXMRAWX(true, false); // Enable automatic RXM RAWX messages: without callback; without implicit update
135+
i2cGNSS.logRXMRAWX(true);
136+
}
137+
else
138+
{
139+
i2cGNSS.setAutoRXMRAWX(false); // Disable automatic RXM RAWX messages
140+
i2cGNSS.logRXMRAWX(false);
141+
}
142+
143+
if(settings.log.sfrbx == true)
144+
{
145+
i2cGNSS.setAutoRXMSFRBX(true, false); // Enable automatic RXM SFRBX messages: without callback; without implicit update
146+
i2cGNSS.logRXMSFRBX(true);
147+
}
148+
else
149+
{
150+
i2cGNSS.setAutoRXMSFRBX(false); // Disable automatic RXM SFRBX messages
151+
i2cGNSS.logRXMSFRBX(false);
152+
}
134153

135154
if (logNMEAMessages() == true)
136155
i2cGNSS.setNMEALoggingMask(SFE_UBLOX_FILTER_NMEA_ALL); // Enable logging of all enabled NMEA messages

0 commit comments

Comments
 (0)