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

Revision:
12:a04f7eeece23
Parent:
10:bfa9081e1d14
Child:
13:10108cd3ad23
--- a/gnss.cpp	Tue May 29 15:17:31 2018 +0500
+++ b/gnss.cpp	Thu May 31 10:59:11 2018 +0500
@@ -295,54 +295,7 @@
 			conf = conf - 1;
 		}
 	}
-	if(conf == 0)
-	{
-		return 1;
-	}
-
-	unsigned char enable_ubx_nav_pvt[]={0x01, 0x07, 0x01};
-	conf = RETRY;
-	while(conf)
-	{
-
-		length = sendUbx(0x06, 0x01, enable_ubx_nav_pvt, sizeof(enable_ubx_nav_pvt));
-		if(length >= (int)(sizeof(enable_ubx_nav_pvt) + UBX_FRAME_SIZE))
-		{
-			wait(5);
-			break;
-		}
-		else
-		{
-			conf = conf - 1;
-		}
-	}
-	if(conf == 0)
-	{
-		return 1;
-	}
-
-	unsigned char ubx_cfg_cfg[] = { 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
-									0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03};
-	conf = RETRY;
-	while(conf)
-	{
-		length = sendUbx(0x06, 0x09, ubx_cfg_cfg, sizeof(ubx_cfg_cfg));
-		if(length >= (int)(sizeof(ubx_cfg_cfg) + UBX_FRAME_SIZE))
-		{
-			wait(5);
-			break;
-		}
-		else
-		{
-			conf = conf - 1;
-		}
-	}
-	if(conf == 0)
-	{
-		return 1;
-	}
-
-	return 0;
+	return (conf == 0) ? 0 : 1;
 }
 
 eUBX_MESSAGE GnssParser::get_ubx_message(char *buff) {