diff options
author | jcorgan | 2007-07-19 04:39:37 +0000 |
---|---|---|
committer | jcorgan | 2007-07-19 04:39:37 +0000 |
commit | 27669cfcdca0d56642cf5279d372fe149e7b1d26 (patch) | |
tree | c40ffe7fc626687567004a7b779b82a0d1ac926a /gr-radar-mono/src/python | |
parent | 0c30f34bf0afa14e8f2ee128dd4168c7c372b862 (diff) | |
download | gnuradio-27669cfcdca0d56642cf5279d372fe149e7b1d26.tar.gz gnuradio-27669cfcdca0d56642cf5279d372fe149e7b1d26.tar.bz2 gnuradio-27669cfcdca0d56642cf5279d372fe149e7b1d26.zip |
Merged r6015:6026 from jcorgan/radar.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6027 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radar-mono/src/python')
-rw-r--r-- | gr-radar-mono/src/python/radar_mono.py | 6 | ||||
-rwxr-xr-x | gr-radar-mono/src/python/usrp_radar_mono.py | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gr-radar-mono/src/python/radar_mono.py b/gr-radar-mono/src/python/radar_mono.py index 5a5be9c8d..0f2c2b252 100644 --- a/gr-radar-mono/src/python/radar_mono.py +++ b/gr-radar-mono/src/python/radar_mono.py @@ -69,6 +69,8 @@ class radar_tx: self._u = usrp.sink_s(fpga_filename='usrp_radar_mono.rbf') self._subdev_spec = (0,0); # FPGA code only implements side A self._subdev = usrp.selected_subdev(self._u, self._subdev_spec) + if hasattr(self._subdev, 'set_lo_offset'): + self._subdev.set_lo_offset(0) self._ton_ticks = 0 self._tsw_ticks = 0 self._tlook_ticks = 0 @@ -126,8 +128,10 @@ class radar_tx: def start(self): self._u.start() - + self._subdev.set_enable(True) + def stop(self): + self._subdev.set_enable(False) self._u.stop() #----------------------------------------------------------------------- diff --git a/gr-radar-mono/src/python/usrp_radar_mono.py b/gr-radar-mono/src/python/usrp_radar_mono.py index 47db53c26..a16a18a8e 100755 --- a/gr-radar-mono/src/python/usrp_radar_mono.py +++ b/gr-radar-mono/src/python/usrp_radar_mono.py @@ -35,7 +35,7 @@ def main(): help="set transmitter center frequency to FREQ in Hz, default is %default", metavar="FREQ") parser.add_option("-w", "--chirp-width", type="eng_float", default=32e6, help="set LFM chirp bandwidth in Hz, default is %default", metavar="FREQ") - parser.add_option("-a", "--amplitude", type="eng_float", default=100, + parser.add_option("-a", "--amplitude", type="eng_float", default=15, help="set waveform amplitude in % full scale, default is %default,") parser.add_option("", "--ton", type="eng_float", default=5e-6, help="set pulse on period in seconds, default is %default,") |