commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r4444 - gnuradio/branches/developers/jcorgan/dect/gnur


From: jcorgan
Subject: [Commit-gnuradio] r4444 - gnuradio/branches/developers/jcorgan/dect/gnuradio-examples/python/dect
Date: Sun, 11 Feb 2007 02:39:44 -0700 (MST)

Author: jcorgan
Date: 2007-02-11 02:39:44 -0700 (Sun, 11 Feb 2007)
New Revision: 4444

Modified:
   
gnuradio/branches/developers/jcorgan/dect/gnuradio-examples/python/dect/dect_receiver.py
Log:
Replaced magic numbers.

Modified: 
gnuradio/branches/developers/jcorgan/dect/gnuradio-examples/python/dect/dect_receiver.py
===================================================================
--- 
gnuradio/branches/developers/jcorgan/dect/gnuradio-examples/python/dect/dect_receiver.py
    2007-02-11 09:35:40 UTC (rev 4443)
+++ 
gnuradio/branches/developers/jcorgan/dect/gnuradio-examples/python/dect/dect_receiver.py
    2007-02-11 09:39:44 UTC (rev 4444)
@@ -25,6 +25,8 @@
 from gmsk2 import gmsk2_demod
 
 _dect_symbol_rate = 1.152e6
+_dect_occupied_bandwidth = _dect_symbol_rate * 1.03 # BT=0.5
+_dect_channel_bandwidth = 1.728e6
 
 # Top-level hierarchical block that implements DECT demodulation and
 # decoding.
@@ -51,8 +53,8 @@
         # Filter baseband to 1.186 MHz passband, 1.728 MHz stopband
         chan_taps = optfir.low_pass(1.0,              # Gain
                                     if_rate,          # Sample rate
-                                    593e3,            # One sided modulation 
bandwidth
-                                    864e3,            # One sided channel 
bandwidth
+                                    _dect_occupied_bandwidth/2, # One sided 
modulation bandwidth
+                                    _dect_channel_bandwidth/2,  # One sided 
channel bandwidth
                                     0.1,              # Passband ripple (db)
                                     60)               # Stopband attenuation 
(db)
         if self._options.verbose:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]