From 0bcae6cb164611c276e2e28a0759442ea354a8f4 Mon Sep 17 00:00:00 2001 From: Daniel Jepson Date: Fri, 6 Apr 2018 13:29:03 -0500 Subject: uhd: update settling time to double in txrx_loopback_to_file example --- host/examples/txrx_loopback_to_file.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp index 9e6617d76..9454e4b97 100644 --- a/host/examples/txrx_loopback_to_file.cpp +++ b/host/examples/txrx_loopback_to_file.cpp @@ -96,7 +96,7 @@ template void recv_to_file( const std::string &file, size_t samps_per_buff, int num_requested_samples, - float settling_time, + double settling_time, std::vector rx_channel_nums ){ int num_total_samps = 0; @@ -126,7 +126,7 @@ template void recv_to_file( UHD_ASSERT_THROW(outfiles.size() == buffs.size()); UHD_ASSERT_THROW(buffs.size() == rx_channel_nums.size()); bool overflow_message = true; - float timeout = settling_time + 0.1f; //expected settling time + padding for first recv + double timeout = settling_time + 0.1f; //expected settling time + padding for first recv //setup streaming uhd::stream_cmd_t stream_cmd((num_requested_samples == 0)? @@ -198,7 +198,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::string rx_args, file, type, rx_ant, rx_subdev, rx_channels; size_t total_num_samps, spb; double rx_rate, rx_freq, rx_gain, rx_bw; - float settling; + double settling; //setup the program options po::options_description desc("Allowed options"); @@ -209,7 +209,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("file", po::value(&file)->default_value("usrp_samples.dat"), "name of the file to write binary samples to") ("type", po::value(&type)->default_value("short"), "sample type in file: double, float, or short") ("nsamps", po::value(&total_num_samps)->default_value(0), "total number of samples to receive") - ("settling", po::value(&settling)->default_value(float(0.2)), "settling time (seconds) before receiving") + ("settling", po::value(&settling)->default_value(double(0.2)), "settling time (seconds) before receiving") ("spb", po::value(&spb)->default_value(0), "samples per buffer, 0 for default") ("tx-rate", po::value(&tx_rate), "rate of transmit outgoing samples") ("rx-rate", po::value(&rx_rate), "rate of receive incoming samples") -- cgit v1.2.3