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:
19:119e7c15ff97
Parent:
18:7adca4350499
Child:
20:bc678f383db1
--- a/gnss_operations.cpp	Wed Sep 12 16:03:01 2018 +0500
+++ b/gnss_operations.cpp	Fri Oct 05 17:28:16 2018 +0500
@@ -34,7 +34,7 @@
 		if(length >= (int)(sizeof(enable_ubx_nav_pvt) + UBX_FRAME_SIZE))
 		{
 			SEND_LOGGING_MESSAGE("UBX-NAV-PVT was enabled\r\n");
-			wait(5);
+			wait(1);
 			break;
 		}
 		else
@@ -97,7 +97,7 @@
 		if(length >= (int)(sizeof(ubx_cfg_nav5) + UBX_FRAME_SIZE))
 		{
 			SEND_LOGGING_MESSAGE("ubx_cfg_nav5 was enabled\r\n");
-			wait(5);
+			wait(1);
 			break;
 		}
 		else
@@ -130,7 +130,7 @@
 		if(length >= (int)(sizeof(ubx_cfg_odo) + UBX_FRAME_SIZE))
 		{
 			SEND_LOGGING_MESSAGE("UBX-ODO was enabled\r\n");
-			wait(5);
+			wait(1);
 			break;
 		}
 		else
@@ -188,7 +188,7 @@
 		if(length >= (int)(sizeof(ubx_nav_odo) + UBX_FRAME_SIZE))
 		{
 			SEND_LOGGING_MESSAGE("UBX-NAV-ODO was enabled\r\n");
-			wait(5);
+			wait(1);
 			break;
 		}
 		else
@@ -250,7 +250,7 @@
 		if(length >= (int)(sizeof(enable_ubx_log_batch) + UBX_FRAME_SIZE))
 		{
 			SEND_LOGGING_MESSAGE("UBX_LOG_BATCH was enabled\r\n");
-			wait(5);
+			wait(1);
 			break;
 		}
 		else
@@ -354,46 +354,46 @@
 	case SEMI_CONTINOUS:
 		SEND_LOGGING_MESSAGE("Configuring SEMI_CONTINOUS");
 		length = GnssSerial::sendUbx(0x06, 0x86, semi_continuous_pms, sizeof(semi_continuous_pms));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x3B, semi_continuous_pm2, sizeof(semi_continuous_pm2));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x08, semi_continuous_rate, sizeof(semi_continuous_rate));
 		break;
 
 	case AGGRESSIVE_CONTINUOS:
 		SEND_LOGGING_MESSAGE("Configuring AGGRESSIVE_CONTINUOS");
 		length = GnssSerial::sendUbx(0x06, 0x86, aggresive_continuous_pms, sizeof(aggresive_continuous_pms));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x3B, aggresive_continuous_pm2, sizeof(aggresive_continuous_pm2));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x08, aggressive_continuous_rate, sizeof(aggressive_continuous_rate));
 		break;
 
 	case CONSERVATIVE_CONTINOUS:
 		SEND_LOGGING_MESSAGE("Configuring CONSERVATIVE_CONTINOUS");
 		length = GnssSerial::sendUbx(0x06, 0x86, conservative_continuous_pms, sizeof(conservative_continuous_pms));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x3B, conservative_continuous_pm2, sizeof(conservative_continuous_pm2));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x08, conservative_continuous_rate, sizeof(conservative_continuous_rate));
 		break;
 
 	case FULL_POWER:
 		SEND_LOGGING_MESSAGE("Configuring FULL_POWER");
 		length = GnssSerial::sendUbx(0x06, 0x86, full_power_pms, sizeof(full_power_pms));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x08, full_power_rate, sizeof(full_power_rate));
 		break;
 	case FULL_POWER_BLOCK_LEVEL:
 		SEND_LOGGING_MESSAGE("Configuring FULL_POWER_BLOCK_LEVEL");
 		length = GnssSerial::sendUbx(0x06, 0x86, full_power_block_level_pms, sizeof(full_power_block_level_pms));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x08, full_power_block_level_rate, sizeof(full_power_block_level_rate));
 		break;
 	case FULL_POWER_BUILDING_LEVEL:
 		SEND_LOGGING_MESSAGE("Configuring FULL_POWER_BUILDING_LEVEL");
 		length = GnssSerial::sendUbx(0x06, 0x86, full_power_building_level_pms, sizeof(full_power_building_level_pms));
-		wait(5);
+		wait(1);
 		length = GnssSerial::sendUbx(0x06, 0x08, full_power_building_level_rate, sizeof(full_power_building_level_rate));
 		break;
 	}