aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/query_gpsdo_sensors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/utils/query_gpsdo_sensors.cpp')
-rw-r--r--host/utils/query_gpsdo_sensors.cpp7
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;