This class provides an API to communicate with a u-blox GNSS chip. The files here were originally part of the C027_Support library (https://developer.mbed.org/teams/ublox/code/C027_Support/ at revision 138:dafbbf31bf76) but have been separated out, primarily for use on the u-blox C030 board where the cellular interace portion of the C027_Support library will instead be provided through the new mbed Cellular API.

Dependents:   example-ublox-at-cellular-interface-ext example-low-power-sleep example-C030-out-of-box-demo example-C030-out-of-box-demo ... more

Files at this revision

API Documentation at this revision

Comitter:
fahim.alavi@u-blox.com
Date:
Wed Apr 03 11:53:35 2019 +0500
Parent:
29:54fd002f2376
Child:
31:9a1ce433f062
Commit message:
FLAG extracted from NAV-PVT

Changed in this revision

gnss.cpp Show annotated file Show diff for this revision Revisions of this file
gnss.h Show annotated file Show diff for this revision Revisions of this file
--- a/gnss.cpp	Mon Dec 17 12:11:07 2018 +0500
+++ b/gnss.cpp	Wed Apr 03 11:53:35 2019 +0500
@@ -446,7 +446,8 @@
 
 	// Go to Fix type
 	index = UBX_PAYLOAD_INDEX + 20;
-	return_decoded_msg.fixType = buf[index];
+    return_decoded_msg.fixType = buf[index++];
+    return_decoded_msg.flag1 = buf[index];
 
 	// Go to lon
 	index = UBX_PAYLOAD_INDEX + 24;
--- a/gnss.h	Mon Dec 17 12:11:07 2018 +0500
+++ b/gnss.h	Wed Apr 03 11:53:35 2019 +0500
@@ -73,6 +73,7 @@
 	uint8_t month;
 	uint8_t day;
 	uint8_t fixType;
+    uint8_t flag1; // gnssFixOK, diffSoln, psmState, headVehValid and carrSoln.
 	int32_t lon; // scaling 1e-7
 	int32_t lat; // scaling 1e-7
 	int32_t height;