diff options
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/query_gpsdo_sensors.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index 21d26e81e..3dc20fd98 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -177,8 +177,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ try { uhd::sensor_value_t gga_string = usrp->get_mboard_sensor("gps_gpgga"); uhd::sensor_value_t rmc_string = usrp->get_mboard_sensor("gps_gprmc"); + 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("Printing available NMEA strings:\n"); - std::cout << boost::format("%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string(); + std::cout << boost::format("%s\n%s\n%s\n%s\n%s\n") % gga_string.to_pp_string() % rmc_string.to_pp_string() % gngga_string.to_pp_string() % gnrmc_string.to_pp_string() % gps_time.to_pp_string(); } catch (uhd::lookup_error &e) { std::cout << "NMEA strings not implemented for this device." << std::endl; } |