summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan2010-07-29 09:10:39 -0700
committerJohnathan Corgan2010-07-29 09:10:39 -0700
commita7de1e8138de520377e3357ca24bc5de4b6bb5d9 (patch)
tree280340b36b3f5fc70e7e3a445214b9c95d0a674e
parent566363ff8077c92a0899513bd27165be8d70f41b (diff)
parentae7cf499472b8174b9b12e1da23482a20bac461a (diff)
downloadgnuradio-a7de1e8138de520377e3357ca24bc5de4b6bb5d9.tar.gz
gnuradio-a7de1e8138de520377e3357ca24bc5de4b6bb5d9.tar.bz2
gnuradio-a7de1e8138de520377e3357ca24bc5de4b6bb5d9.zip
Merge branch 'uhd' of git://gnuradio.org/jblum into next
-rw-r--r--gr-uhd/lib/uhd_mimo_source.cc3
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