@@ -8895,6 +8895,34 @@ bool SFE_UBLOX_GNSS::getTimeValid(uint16_t maxWait)
88958895 return ((bool )packetUBXNAVPVT->data .valid .bits .validTime );
88968896}
88978897
8898+ // Get the confirmed date validity
8899+ bool SFE_UBLOX_GNSS:: getConfirmedDate(uint16_t maxWait)
8900+ {
8901+ if (packetUBXNAVPVT == NULL ) initPacketUBXNAVPVT (); // Check that RAM has been allocated for the PVT data
8902+ if (packetUBXNAVPVT == NULL ) // Bail if the RAM allocation failed
8903+ return (false );
8904+
8905+ if (packetUBXNAVPVT->moduleQueried .moduleQueried1 .bits .confirmedDate == false )
8906+ getPVT (maxWait);
8907+ packetUBXNAVPVT->moduleQueried .moduleQueried1 .bits .confirmedDate = false ; // Since we are about to give this to user, mark this data as stale
8908+ packetUBXNAVPVT->moduleQueried .moduleQueried1 .bits .all = false ;
8909+ return ((bool )packetUBXNAVPVT->data .flags2 .bits .confirmedDate );
8910+ }
8911+
8912+ // Get the confirmed time validity
8913+ bool SFE_UBLOX_GNSS:: getConfirmedTime(uint16_t maxWait)
8914+ {
8915+ if (packetUBXNAVPVT == NULL ) initPacketUBXNAVPVT (); // Check that RAM has been allocated for the PVT data
8916+ if (packetUBXNAVPVT == NULL ) // Bail if the RAM allocation failed
8917+ return (false );
8918+
8919+ if (packetUBXNAVPVT->moduleQueried .moduleQueried1 .bits .confirmedTime == false )
8920+ getPVT (maxWait);
8921+ packetUBXNAVPVT->moduleQueried .moduleQueried1 .bits .confirmedTime = false ; // Since we are about to give this to user, mark this data as stale
8922+ packetUBXNAVPVT->moduleQueried .moduleQueried1 .bits .all = false ;
8923+ return ((bool )packetUBXNAVPVT->data .flags2 .bits .confirmedTime );
8924+ }
8925+
88988926// Get the current fix type
88998927// 0=no fix, 1=dead reckoning, 2=2D, 3=3D, 4=GNSS, 5=Time fix
89008928uint8_t SFE_UBLOX_GNSS::getFixType (uint16_t maxWait)
0 commit comments