|
From: | Josh Blum |
Subject: | Re: [Discuss-gnuradio] uhd::tune_result_t vs. usrp2::tune_result |
Date: | Thu, 25 Nov 2010 08:44:22 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
to work with the gr-uhd modules to (re)enable the use of UHD with the gnuradio-examples/python/digital stuff.
awesome
I'm a bit confused with the return value of the set_center_freq of the uhd_single_usrp_source. What I tried was to map the values of the uhd::tune_result_t into a usrp_tune_result. Does this make any sense to you guys? ;-)
Its not quite a 1:1 mapping. I dont believe that any of the examples that use generic USRP even bother to look at the tune result. I would ignore this.
Another question that arose while looking at the code concerns the change in the way we set the sample rate:
In UHD, you set the sample rate. However for usrp2 and usrp1 gnuradio drivers, you set the decimation and interpolation and the sample rate is implied to be codec_rate/decim.
I see two options:1) change the options for the generic usrp to take a sample rate and internally (in generic_usrp.py) translate this into a decimation/interpolation number for non UHD case.
or 2) add a new option that specifies the codec rate that can be used to calculate the sample rate from decim/interp for the UHD case.
-josh
Why do we have in the new UHD source: set_samp_rate (double rate) versus: set_decim (int decimation_factor) in the old USRP source? Thanks for your time again& happy hacking - -Moritz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJM7mLVAAoJEOjnDXL6I0uZpHMP/28s/A98djBGYaeanGp54MXY khFV6Ltx0vsCNv6Uf4oJTsBdxhcqPX3x3YYbXCf5k7MXyQXxj23OrHVMtl2niVbc kbh2V710OTQEIC940ARrumPVTVDJ+A8vN76XGGGowZtJjMGaPYb20vyKkhqN5FWC k6+xhi/DUBCWIWWE/fyefP0zl3VhSIbV4L5zjWtoX/A1NTeTKZsq+UcsKz6ZVDCl UmZPBvav2PAIYpo99zvB3qZcxCPaGata09ZKsV03OeiUKG9yI1yUCXgj5tzhRNs2 dJFIAJAhkvI4rzV/GCYHI2WUuql758iCCPTbE4DLYBzyST/Eg5h1jveQetObIGpy PGMRGKv4jXg3BUQN6gxrI7SN2ZGSs8i+oxJdmu7pr1Zwnc3DxAVX9HgupfjARray MbO9RqbFKPoaWSwIJj6/SpNvVb/0b9zHPrN2UQWW31LfL4NS/3Ku5iTf3Fm5lx8l 7qLg+vJ4K35FO0iV/WIrOu+SHLPE8jiqlaaOgMC2pFfpqueLIMf5EXn0usiDgLjl IrvdxBzvMfPI4H+4UiNoMq3OD9v0jBFvaIGcFqPmVlqKr93N/GNT/sRYgxxOIXpw +4nzu5sRB2uFJa+4ABUs6RrJ8QvSzzkZW72rXk0hYNygn8IuUX8YkQMgifEQ19KZ WLgxSrO5FnWPUkYL+X7i =EbAB -----END PGP SIGNATURE----- _______________________________________________ Discuss-gnuradio mailing list address@hidden http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |