From ae7cf499472b8174b9b12e1da23482a20bac461a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 28 Jul 2010 16:44:14 -0700 Subject: uhd: use time delay in proportion to the number of channels --- gr-uhd/lib/uhd_mimo_source.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gr-uhd/lib/uhd_mimo_source.cc') 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 -- cgit