Package: gnuradio / 3.7.13.4-4

0003-modified-gen_uhd_usrp_blocks.py.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From fc3eaf1414c192294281eef0a009359d1c913d99 Mon Sep 17 00:00:00 2001
From: 1fancyhat <44416377+1fancyhat@users.noreply.github.com>
Date: Mon, 12 Nov 2018 10:00:58 -0800
Subject: [PATCH 3/5] modified gen_uhd_usrp_blocks.py

Removed the `if` check around
self.$(id).set_auto_dc_offset($dc_offs_enb$(n), $n) and
self.$(id).set_auto_iq_balance($iq_imbal_enb$(n), $n). In the FE
corrections tab, if False was entered, the if check would be set to
false and prevent the DC filter from being turned off. Now the FE
correction tab can be used to turn dc_offset and IQ_balance on or off
(On is the default value).

this solves issue #1236.
---
 gr-uhd/grc/gen_uhd_usrp_blocks.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/gr-uhd/grc/gen_uhd_usrp_blocks.py b/gr-uhd/grc/gen_uhd_usrp_blocks.py
index 8b7c58682a..81b86cc81a 100644
--- a/gr-uhd/grc/gen_uhd_usrp_blocks.py
+++ b/gr-uhd/grc/gen_uhd_usrp_blocks.py
@@ -88,12 +88,8 @@ self.\$(id).set_lo_export_enabled(\$lo_export$(n), uhd.ALL_LOS, $n)
     \#if \$lo_source$(n)() and not \$hide_lo_controls()
 self.\$(id).set_lo_source(\$lo_source$(n), uhd.ALL_LOS, $n)
 	\#end if
-	\#if \$dc_offs_enb$(n)()
 self.\$(id).set_auto_dc_offset(\$dc_offs_enb$(n), $n)
-	\#end if
-	\#if \$iq_imbal_enb$(n)()
 self.\$(id).set_auto_iq_balance(\$iq_imbal_enb$(n), $n)
-	\#end if
 #end if
 \#end if
 #end for
@@ -600,7 +596,7 @@ PARAMS_TMPL = """	<param>
 	<param>
 		<name>Ch$(n): Enable DC Offset Correction</name>
 		<key>dc_offs_enb$(n)</key>
-		<value>""</value>
+		<value>True</value>
 		<type>raw</type>
 		<hide>
 			\#if not \$nchan() > $n
@@ -614,7 +610,7 @@ PARAMS_TMPL = """	<param>
 	<param>
 		<name>Ch$(n): Enable IQ Imbalance Correction</name>
 		<key>iq_imbal_enb$(n)</key>
-		<value>""</value>
+		<value>True</value>
 		<type>raw</type>
 		<hide>
 			\#if not \$nchan() > $n
-- 
2.11.0