summaryrefslogtreecommitdiff
path: root/gr-pager/apps/usrp_flex_all
diff options
context:
space:
mode:
Diffstat (limited to 'gr-pager/apps/usrp_flex_all')
-rwxr-xr-xgr-pager/apps/usrp_flex_all20
1 files changed, 10 insertions, 10 deletions
diff --git a/gr-pager/apps/usrp_flex_all b/gr-pager/apps/usrp_flex_all
index 36bd90034..75c4c1e73 100755
--- a/gr-pager/apps/usrp_flex_all
+++ b/gr-pager/apps/usrp_flex_all
@@ -1,24 +1,24 @@
#!/usr/bin/env python
#
# Copyright 2006,2007,2009 Free Software Foundation, Inc.
-#
+#
# This file is part of GNU Radio
-#
+#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
-#
+#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
-#
+#
from gnuradio import gr, gru, uhd, optfir, eng_notation, blks2, pager
from gnuradio.eng_option import eng_option
@@ -59,7 +59,7 @@ class app_top_block(gr.top_block):
print "\nNo gain specified."
print "Setting gain to %f (from [%f, %f])" % \
(options.rx_gain, grange.start(), grange.stop())
-
+
self.u.set_gain(options.rx_gain, 0)
# Grab >=3 MHz of spectrum, evenly divisible by 25 KHz channels
@@ -74,11 +74,11 @@ class app_top_block(gr.top_block):
if (rate != 3.2e6):
print "Unable to set required sample rate for >= 3MHz of 25 KHz channels."
sys.exit(1)
-
+
self.nchan = int(rate/25e3)
if options.verbose:
print "\nReceiving", rate/1e6, "MHz of bandwidth containing", self.nchan, "baseband channels."
-
+
taps = gr.firdes.low_pass(1.0,
1.0,
1.0/self.nchan*0.4,
@@ -143,7 +143,7 @@ def get_options():
sys.exit(1)
return (options, args)
-
+
def main():
@@ -159,6 +159,6 @@ def main():
pass
runner.end()
-
+
if __name__ == "__main__":
main()