From bf7b29199d87964ae017ef99eecef97a3e861863 Mon Sep 17 00:00:00 2001 From: PaulZC Date: Tue, 29 Jun 2021 17:13:05 +0100 Subject: [PATCH] Ensure NMEA messages are enabled in Examples 1 and 2 --- examples/Example1_BasicNMEARead/Example1_BasicNMEARead.ino | 3 +++ examples/Example2_NMEAParsing/Example2_NMEAParsing.ino | 3 +++ 2 files changed, 6 insertions(+) diff --git a/examples/Example1_BasicNMEARead/Example1_BasicNMEARead.ino b/examples/Example1_BasicNMEARead/Example1_BasicNMEARead.ino index f2c2368..55a7a23 100644 --- a/examples/Example1_BasicNMEARead/Example1_BasicNMEARead.ino +++ b/examples/Example1_BasicNMEARead/Example1_BasicNMEARead.ino @@ -39,6 +39,9 @@ void setup() 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 myGNSS.setNMEAOutputPort(Serial); } diff --git a/examples/Example2_NMEAParsing/Example2_NMEAParsing.ino b/examples/Example2_NMEAParsing/Example2_NMEAParsing.ino index 48b691b..cf329a5 100644 --- a/examples/Example2_NMEAParsing/Example2_NMEAParsing.ino +++ b/examples/Example2_NMEAParsing/Example2_NMEAParsing.ino @@ -46,6 +46,9 @@ void setup() 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_GGA); // Or, we can be kind to MicroNMEA and _only_ pass the GGA messages to it