diff options
Diffstat (limited to 'gr-uhd/apps/hf_explorer')
-rw-r--r-- | gr-uhd/apps/hf_explorer/.gitignore | 3 | ||||
-rw-r--r-- | gr-uhd/apps/hf_explorer/Makefile.am | 31 | ||||
-rwxr-xr-x | gr-uhd/apps/hf_explorer/hfx.py | 22 | ||||
-rw-r--r-- | gr-uhd/apps/hf_explorer/hfx_help | 14 |
4 files changed, 18 insertions, 52 deletions
diff --git a/gr-uhd/apps/hf_explorer/.gitignore b/gr-uhd/apps/hf_explorer/.gitignore deleted file mode 100644 index b6950912c..000000000 --- a/gr-uhd/apps/hf_explorer/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/Makefile -/Makefile.in -/*.pyc diff --git a/gr-uhd/apps/hf_explorer/Makefile.am b/gr-uhd/apps/hf_explorer/Makefile.am deleted file mode 100644 index c8e7ecb25..000000000 --- a/gr-uhd/apps/hf_explorer/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright 2006,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. -# - -include $(top_srcdir)/Makefile.common - -ourdatadir = $(exampledir)/hf_explorer - -dist_ourdata_DATA = \ - README \ - hfx_help - -dist_ourdata_SCRIPTS = \ - hfx.py diff --git a/gr-uhd/apps/hf_explorer/hfx.py b/gr-uhd/apps/hf_explorer/hfx.py index 687adf82b..1f08bd8ba 100755 --- a/gr-uhd/apps/hf_explorer/hfx.py +++ b/gr-uhd/apps/hf_explorer/hfx.py @@ -56,7 +56,7 @@ # | # V # (dst) -# +# #---------------------------------------------------------------------- # # Versions 2.2.1 adds loop antenna automatic tuner @@ -65,7 +65,7 @@ # added more comments. # # 2.4.1 updates usrp interface to support auto subdev -# +# # 2.8.1 changed saved file format from 8-byte complex to # 4-byte short for obvious storage space savings. @@ -93,7 +93,7 @@ ID_BUTTON_3 = wx.NewId() # AM ID_BUTTON_4 = wx.NewId() # CW ID_BUTTON_5 = wx.NewId() # Powermate controls: Upper audio freq cutoff ID_BUTTON_6 = wx.NewId() # " Lower audio freq cutoff -ID_BUTTON_7 = wx.NewId() # " Frequency +ID_BUTTON_7 = wx.NewId() # " Frequency ID_BUTTON_8 = wx.NewId() # " Volume ID_BUTTON_9 = wx.NewId() # " Time ID_BUTTON_10 = wx.NewId() # Time Seek Forwards @@ -105,7 +105,7 @@ ID_TEXT_1 = wx.NewId() # Band Center, USRP ddc Freq ID_SPIN_1 = wx.NewId() # Frequency display and control ID_SLIDER_1 = wx.NewId() # Upper audio freq cutoff ID_SLIDER_2 = wx.NewId() # Lower audio freq cutoff -ID_SLIDER_3 = wx.NewId() # Frequency +ID_SLIDER_3 = wx.NewId() # Frequency ID_SLIDER_4 = wx.NewId() # Volume ID_SLIDER_5 = wx.NewId() # Programmable Gain Amp, PGA, RF gain ID_SLIDER_6 = wx.NewId() # AM Sync carrier level @@ -118,7 +118,7 @@ class MyFrame(wx.Frame): # begin wxGlade: MyFrame.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) - + # Menu Bar self.frame_1_menubar = wx.MenuBar() self.SetMenuBar(self.frame_1_menubar) @@ -215,7 +215,7 @@ class MyFrame(wx.Frame): self.f_slider_scale = 10000 self.spin_ctrl_1.SetRange(self.f_lo,self.f_hi) self.text_ctrl_1.SetValue(str(int(self.usrp_center))) - self.slider_5.SetValue(0) + self.slider_5.SetValue(0) self.AM_mode = False self.slider_3.SetValue((self.frequency-self.f_slider_offset)/self.f_slider_scale) @@ -265,7 +265,7 @@ class MyFrame(wx.Frame): self.tb.connect((s2ss,1),s2f2) self.tb.connect(s2f1,(src_f2c,0)) self.tb.connect(s2f2,(src_f2c,1)) - + # save radio data to a file if SAVE_RADIO_TO_FILE: radio_file = gr.file_sink(gr.sizeof_short, options.radio_file) @@ -295,7 +295,7 @@ class MyFrame(wx.Frame): sample_rate=self.af_sample_rate, average=True, size=(640,240)) - # AM Sync carrier + # AM Sync carrier if AM_SYNC_DISPLAY: self.fft2 = fftsink.fft_sink_c(self.tb, self.panel_9, y_per_div=20, fft_size=512, @@ -698,10 +698,10 @@ class MyFrame(wx.Frame): if self.AM_mode: fRel = ( event.GetX() - 330. ) / 14.266666 - 7.5 else: - fRel = ( event.GetX() - 330. ) / 14.266666 + fRel = ( event.GetX() - 330. ) / 14.266666 self.fft.win.SetToolTip(wx.ToolTip(eng_notation.num_to_str(self.frequency + (fRel*1e3)))) - # Mouse clicked on fft display - change frequency + # Mouse clicked on fft display - change frequency def Click(self,event): fRel = ( event.GetX() - 330. ) / 14.266666 if self.AM_mode == False: @@ -752,7 +752,7 @@ class MyFrame(wx.Frame): dev.write_aux_dac(uhd.dboard_iface.UNIT_RX, uhd.dboard_iface.AUX_DAC_C, float(self.slider_7.GetValue())) - + # Timer events - check for web commands def OnUpdate(self): cmds = os.listdir("/var/www/cgi-bin/commands/") diff --git a/gr-uhd/apps/hf_explorer/hfx_help b/gr-uhd/apps/hf_explorer/hfx_help index 9a52dd2bb..c8fa28dbd 100644 --- a/gr-uhd/apps/hf_explorer/hfx_help +++ b/gr-uhd/apps/hf_explorer/hfx_help @@ -10,7 +10,7 @@ Default is 3.9e6 80 meter ham band. Example: - hfx.py -c 9500k + hfx.py -c 9500k starts up in the 31 meter band. @@ -49,15 +49,15 @@ usrp hardware needed. Tune about the 800kHz wide band. When playing a recorded file, time controls fast-forward and rewind are available. - + -d Decimation. Sets sample rate and bandwidth. This is the factor that the usrp sample rate, 64e6, is divided by. Default is 250 for 256kHz bandwidth - which is enough to record a ham band without + which is enough to record a ham band without eating up disk space too fast. The 64e6 sample rate limits the upper practical frequency to 32MHz. The Basic RX transformer limits the lower frequency - to about 200kHz. + to about 200kHz. Powermate Knob: @@ -145,12 +145,12 @@ amp I like is a Minicircuits ZHL-32A 29db amp but they are expensive and hard to find. Also it may help to use some filters to keep strong local signals from the ADC, or limit rf input - to the band of interest, etc. + to the band of interest, etc. Resonant outdoor antennas, like a dipole, in a low-noise (away from consumer electronics) environment are nice. Long random wires with a tuner work. I like a small indoor tuned loop made from 10ft of 1/4" copper tube, a 365pf tuning cap and a pickup loop connected - to rg-58. + to rg-58. Web Control: @@ -167,7 +167,7 @@ IF Output: - There is a provision for outputting un-demodulated complex + There is a provision for outputting un-demodulated complex through the audio out in stereo for use with Digital Radio Mondial (DRM) or using a seperate demodulation program like SDRadio (by I2PHD). |