[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] gr-radio-astronomy/src/python usrp_psr_receiver.py
From: |
Marcus D. Leech |
Subject: |
[Commit-gnuradio] gr-radio-astronomy/src/python usrp_psr_receiver.py |
Date: |
Sat, 01 Jul 2006 02:43:52 +0000 |
CVSROOT: /sources/gnuradio
Module name: gr-radio-astronomy
Changes by: Marcus D. Leech <mleech> 06/07/01 02:43:52
Modified files:
src/python : usrp_psr_receiver.py
Log message:
Fixed the xydfunc() to display correct Hz units, when lowpass >= 500Hz
(Because the plot functions scale things, and when you use the cursor
functions, the units aren't always in Hz).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gr-radio-astronomy/src/python/usrp_psr_receiver.py?cvsroot=gnuradio&r1=1.6&r2=1.7
Patches:
Index: usrp_psr_receiver.py
===================================================================
RCS file: /sources/gnuradio/gr-radio-astronomy/src/python/usrp_psr_receiver.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- usrp_psr_receiver.py 1 Jul 2006 01:08:40 -0000 1.6
+++ usrp_psr_receiver.py 1 Jul 2006 02:43:52 -0000 1.7
@@ -180,7 +180,7 @@
#
save_i = 0
candidates = []
- for i in range(50,300):
+ for i in range(20,300):
input_rate = self.folder_input_rate
output_rate = int(self.pulse_freq * i)
interp = gru.lcm(input_rate, output_rate) / input_rate
@@ -866,6 +866,9 @@
#
def xydfunc(self,xyv):
s = "%.6fHz\n%.3fdB" % (xyv[0], xyv[1])
+ if self.lowpass >= 500:
+ s = "%.6fHz\n%.3fdB" % (xyv[0]*1000, xyv[1])
+
self.myform['spec_data'].set_value(s)
# This is another callback used by ra_fftsink.py (passed on creation
@@ -1089,7 +1092,7 @@
return(int(ntaps))
def main ():
- app = stdgui.stdapp(app_flow_graph, "RADIO ASTRONOMY PULSAR RECEIVER:
$Revision: 1.6 $", nstatus=1)
+ app = stdgui.stdapp(app_flow_graph, "RADIO ASTRONOMY PULSAR RECEIVER:
$Revision: 1.7 $", nstatus=1)
app.MainLoop()
if __name__ == '__main__':