Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: gnss_operations.cpp
- Revision:
- 19:119e7c15ff97
- Parent:
- 18:7adca4350499
- Child:
- 20:bc678f383db1
diff -r 7adca4350499 -r 119e7c15ff97 gnss_operations.cpp
--- 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;
}