summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-01-09 10:31:43 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2013-01-09 10:31:43 -0800
commita3b7a3f8498d5e32f5aaa1051401e8a57c92cb3d (patch)
tree3f937b33da9517733aabeb581f147ffa43f6c749
parentab380c043d52ae732a97eb7f076bb0d66246badd (diff)
parent85883530b160de19dba9c3cd3cf21488e61d0806 (diff)
downloaduhd-a3b7a3f8498d5e32f5aaa1051401e8a57c92cb3d.tar.gz
uhd-a3b7a3f8498d5e32f5aaa1051401e8a57c92cb3d.tar.bz2
uhd-a3b7a3f8498d5e32f5aaa1051401e8a57c92cb3d.zip
Merge branch 'maint'
-rw-r--r--host/utils/query_gpsdo_sensors.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp
index d459fd0ec..de6bdcd72 100644
--- a/host/utils/query_gpsdo_sensors.cpp
+++ b/host/utils/query_gpsdo_sensors.cpp
@@ -100,13 +100,14 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::cout << boost::format("ref_locked sensor not present on this board.\n");
//Check PPS and compare UHD device time to GPS time
+ boost::this_thread::sleep(boost::posix_time::seconds(1));
uhd::sensor_value_t gps_time = usrp->get_mboard_sensor("gps_time");
const uhd::time_spec_t last_pps_time = usrp->get_time_last_pps();
if (last_pps_time.get_full_secs() == gps_time.to_int()) {
std::cout << boost::format("GPS and UHD Device time are aligned.\n");
} else
std::cout << boost::format("\nGPS and UHD Device time are NOT aligned. Try re-running the program. Double check 1 PPS connection from GPSDO.\n\n");
-
+
//print NMEA strings
std::cout << boost::format("Printing available NMEA strings:\n");
uhd::sensor_value_t gga_string = usrp->get_mboard_sensor("gps_gpgga");