Ensure NMEA messages are enabled in Examples 1 and 2

This commit is contained in:
PaulZC
2021-06-29 17:13:05 +01:00
parent 794966bc9c
commit bf7b29199d
2 changed files with 6 additions and 0 deletions
@@ -39,6 +39,9 @@ void setup()
while (1); while (1);
} }
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); //Set the I2C port to output both NMEA and UBX messages
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save (only) the communications port settings to flash and BBR
//This will pipe all NMEA sentences to the serial port so we can see them //This will pipe all NMEA sentences to the serial port so we can see them
myGNSS.setNMEAOutputPort(Serial); myGNSS.setNMEAOutputPort(Serial);
} }
@@ -46,6 +46,9 @@ void setup()
while (1); while (1);
} }
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); //Set the I2C port to output both NMEA and UBX messages
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save (only) the communications port settings to flash and BBR
myGNSS.setProcessNMEAMask(SFE_UBLOX_FILTER_NMEA_ALL); // Make sure the library is passing all NMEA messages to processNMEA myGNSS.setProcessNMEAMask(SFE_UBLOX_FILTER_NMEA_ALL); // Make sure the library is passing all NMEA messages to processNMEA
myGNSS.setProcessNMEAMask(SFE_UBLOX_FILTER_NMEA_GGA); // Or, we can be kind to MicroNMEA and _only_ pass the GGA messages to it myGNSS.setProcessNMEAMask(SFE_UBLOX_FILTER_NMEA_GGA); // Or, we can be kind to MicroNMEA and _only_ pass the GGA messages to it