[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10940 - gnuradio/branches/developers/jblum/digital
From: |
jblum |
Subject: |
[Commit-gnuradio] r10940 - gnuradio/branches/developers/jblum/digital |
Date: |
Fri, 1 May 2009 13:46:40 -0600 (MDT) |
Author: jblum
Date: 2009-05-01 13:46:39 -0600 (Fri, 01 May 2009)
New Revision: 10940
Modified:
gnuradio/branches/developers/jblum/digital/pick_bitrate.py
Log:
print the requested and actual bitrates
Modified: gnuradio/branches/developers/jblum/digital/pick_bitrate.py
===================================================================
--- gnuradio/branches/developers/jblum/digital/pick_bitrate.py 2009-05-01
19:20:12 UTC (rev 10939)
+++ gnuradio/branches/developers/jblum/digital/pick_bitrate.py 2009-05-01
19:46:39 UTC (rev 10940)
@@ -19,6 +19,8 @@
# Boston, MA 02110-1301, USA.
#
+from gnuradio import eng_notation
+
_default_bitrate = 500e3
_valid_samples_per_symbol = (2,3,4,5,6,7)
@@ -94,13 +96,15 @@
# now we have a target bitrate and possibly an xrate or
# samples_per_symbol constraint, but not both of them.
- return _pick_best(bitrate, bits_per_symbol,
+ ret = _pick_best(bitrate, bits_per_symbol,
_filter_info(gen_info(converter_rate),
samples_per_symbol, xrate))
+ print "Actual Bitrate:", eng_notation.num_to_str(ret[0])
+ return ret
#
---------------------------------------------------------------------------------------
def pick_tx_bitrate(bitrate, bits_per_symbol, samples_per_symbol,
- interp_rate, converter_rate=128e6):
+ interp_rate, converter_rate):
"""
Given the 4 input parameters, return at configuration that matches
@@ -117,12 +121,13 @@
@returns tuple (bitrate, samples_per_symbol, interp_rate)
"""
+ print "Requested TX Bitrate:", bitrate and
eng_notation.num_to_str(bitrate) or 'Auto'
return _pick_bitrate(bitrate, bits_per_symbol, samples_per_symbol,
interp_rate, converter_rate, _gen_tx_info)
def pick_rx_bitrate(bitrate, bits_per_symbol, samples_per_symbol,
- decim_rate, converter_rate=64e6):
+ decim_rate, converter_rate):
"""
Given the 4 input parameters, return at configuration that matches
@@ -139,5 +144,6 @@
@returns tuple (bitrate, samples_per_symbol, decim_rate)
"""
+ print "Requested RX Bitrate:", bitrate and
eng_notation.num_to_str(bitrate) or 'Auto'
return _pick_bitrate(bitrate, bits_per_symbol, samples_per_symbol,
decim_rate, converter_rate, _gen_rx_info)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10940 - gnuradio/branches/developers/jblum/digital,
jblum <=