commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/03: uhd_rx_cfile --normalized-gain flag


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/03: uhd_rx_cfile --normalized-gain flag now works.
Date: Mon, 27 Feb 2017 00:24:18 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit cb0de20ec8aa3da00a13f1619c9d39ad02551168
Author: Ethan Trewhitt <address@hidden>
Date:   Tue Feb 14 23:49:38 2017 -0500

    uhd_rx_cfile --normalized-gain flag now works.
---
 gr-uhd/apps/uhd_rx_cfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gr-uhd/apps/uhd_rx_cfile b/gr-uhd/apps/uhd_rx_cfile
index f76dc2e..2a1ed0f 100755
--- a/gr-uhd/apps/uhd_rx_cfile
+++ b/gr-uhd/apps/uhd_rx_cfile
@@ -108,7 +108,10 @@ class rx_cfile_block(gr.top_block):
                 print("[UHD_RX] Channel {chan} gain: {g} dB".format(chan=chan, 
g=self._u.get_gain(chan)))
         else:
             for chan in self.channels:
-                self._u.set_gain(options.gain, chan)
+                if options.normalized_gain:
+                    self._u.set_normalized_gain(options.gain, chan)
+                else:
+                    self._u.set_gain(options.gain, chan)
         gain = self._u.get_gain(self.channels[0])
         # Set frequency (tune request takes lo_offset):
         if options.lo_offset is not None:



reply via email to

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