diff options
author | Josh Blum | 2010-07-28 16:44:14 -0700 |
---|---|---|
committer | Josh Blum | 2010-07-28 16:44:14 -0700 |
commit | ae7cf499472b8174b9b12e1da23482a20bac461a (patch) | |
tree | b44c8decae859f434cd801c5ad4a31c21973c6f1 | |
parent | c3c4303b9fa4987369e9641ab4206724da74f3b2 (diff) | |
download | gnuradio-ae7cf499472b8174b9b12e1da23482a20bac461a.tar.gz gnuradio-ae7cf499472b8174b9b12e1da23482a20bac461a.tar.bz2 gnuradio-ae7cf499472b8174b9b12e1da23482a20bac461a.zip |
uhd: use time delay in proportion to the number of channels
-rw-r--r-- | gr-uhd/lib/uhd_mimo_source.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-uhd/lib/uhd_mimo_source.cc b/gr-uhd/lib/uhd_mimo_source.cc index b620a56fc..2b5384ce3 100644 --- a/gr-uhd/lib/uhd_mimo_source.cc +++ b/gr-uhd/lib/uhd_mimo_source.cc @@ -136,9 +136,10 @@ protected: void set_streaming(bool enb){ if (enb){ //setup a stream command that starts streaming slightly in the future + static const double reasonable_delay = 0.01; //10 ms (order of magnitude >> RTT) uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS); stream_cmd.stream_now = false; - stream_cmd.time_spec = get_time_now() + uhd::time_spec_t(0, 0.01); //10ms offset in future + stream_cmd.time_spec = get_time_now() + uhd::time_spec_t(_dev->get_num_channels() * reasonable_delay); _dev->issue_stream_cmd(stream_cmd); } else |