[chirp_devel] [PATCH] [uv5r] add STE (squelch tail elimination) settings
Jim Unroe
Sun Jan 6 08:50:27 PST 2013
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1357490457 18000
# Node ID d787f136c69707b68d2e21fed44eaa4bcf0d4183
# Parent 95bba392a51ff08a5d81b201d354b7ed5f909d61
[uv5r] add STE (squelch tail elimination) settings
all settings were added to the Advanced Settings menu
Squelch Tail Eliminate (HT to HT) - corresponds to menu 35
Squelch Tail Eliminate (repeater) - corresponds to menu 36
STE Repeater Delay - corresponds to menu 37
#399
diff -r 95bba392a51f -r d787f136c697 chirp/uv5r.py
--- a/chirp/uv5r.py Fri Jan 04 21:57:10 2013 -0800
+++ b/chirp/uv5r.py Sun Jan 06 11:40:57 2013 -0500
@@ -150,6 +150,10 @@
ALMOD_LIST = ["Site", "Tone", "Code"]
TDRAB_LIST = ["Off", "A", "B"]
PONMSG_LIST = ["Full", "Message"]
+RPSTE_LIST = ["%s" % x for x in range(1, 11, 1)]
+RPSTE_LIST.insert(0, "OFF")
+STEDELAY_LIST = ["%s ms" % x for x in range(100, 1100, 100)]
+STEDELAY_LIST.insert(0, "OFF")
SETTING_LISTS = {
"step" : STEP_LIST,
@@ -164,6 +168,8 @@
"almod" : ALMOD_LIST,
"tdrab" : TDRAB_LIST,
"ponmsg" : PONMSG_LIST,
+ "rpste" : RPSTE_LIST,
+ "stedelay" : STEDELAY_LIST,
}
def _do_status(radio, block):
@@ -699,7 +705,21 @@
advanced.append(rs)
except Exception:
print ("Your ANI code is not five digits, which is not currently"
- " supported in CHIRP.")
+ " supported in CHIRP.")
+
+ rs = RadioSetting("ste", "Squelch Tail Eliminate (HT to HT)",
+ RadioSettingValueBoolean(_settings.ste))
+ advanced.append(rs)
+
+ rs = RadioSetting("rpste", "Squelch Tail Eliminate (repeater)",
+ RadioSettingValueList(RPSTE_LIST,
+ RPSTE_LIST[_settings.rpste]))
+ advanced.append(rs)
+
+ rs = RadioSetting("rptrl", "STE Repeater Delay",
+ RadioSettingValueList(STEDELAY_LIST,
+ STEDELAY_LIST[_settings.rptrl]))
+ advanced.append(rs)
if len(self._mmap.get_packed()) == 0x1808:
# Old image, without aux block
More information about the chirp_devel
mailing list