diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-02-12 07:49:37 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-02-12 07:49:37 +0100 |
commit | ec027e05039567b079006035bf99717a3d4e7bf7 (patch) | |
tree | 6f4fcf653e4779b2f4f713d1f9108d859bd666f4 /host/utils | |
parent | 9e7d0cc81da055bf2a7a6970a5093de52869aec9 (diff) | |
download | uhd-ec027e05039567b079006035bf99717a3d4e7bf7.tar.gz uhd-ec027e05039567b079006035bf99717a3d4e7bf7.tar.bz2 uhd-ec027e05039567b079006035bf99717a3d4e7bf7.zip |
Add detection for LEA-M8Frelease_003_007_001-refclk30_72-lea-m8f
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/query_gpsdo_sensors.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index 91088112c..5a9ce95bb 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -114,7 +114,12 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Printing available NMEA strings:\n"); uhd::sensor_value_t gga_string = usrp->get_mboard_sensor("gps_gpgga"); uhd::sensor_value_t rmc_string = usrp->get_mboard_sensor("gps_gprmc"); - std::cout << boost::format("%s\n%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string() % gps_time.to_pp_string(); + std::cout << boost::format("%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string(); + + uhd::sensor_value_t gngga_string = usrp->get_mboard_sensor("gps_gngga"); + uhd::sensor_value_t gnrmc_string = usrp->get_mboard_sensor("gps_gnrmc"); + std::cout << boost::format("%s\n%s\n%s\n") % gngga_string.to_pp_string() % gnrmc_string.to_pp_string() % gps_time.to_pp_string(); + std::cout << boost::format("UHD Device time: %.0f seconds\n") % (last_pps_time.get_real_secs()); std::cout << boost::format("PC Clock time: %.0f seconds\n") % pc_clock_time; |