[chirp_devel] [PATCH] [KG-UV6] Enlarge allowed frequency ranges to support new 70MHz models
Marco Filippi IZ3GME
Sun Jan 6 13:19:56 PST 2013
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1357507103 -3600
# Node ID 694b2cd1fe2c4d168cb3444710b6b5812e058151
# Parent 95bba392a51ff08a5d81b201d354b7ed5f909d61
[KG-UV6] Enlarge allowed frequency ranges to support new 70MHz models
fix #376
diff -r 95bba392a51f -r 694b2cd1fe2c chirp/wouxun.py
--- a/chirp/wouxun.py ven gen 04 21:57:10 2013 -0800
+++ b/chirp/wouxun.py dom gen 06 22:18:23 2013 +0100
@@ -672,7 +672,61 @@
return rf
def get_settings(self):
- top = KGUVD1PRadio.get_settings(self)
+ freqranges = RadioSettingGroup("freqranges", "Freq ranges")
+ top = RadioSettingGroup("top", "All Settings", freqranges)
+
+ rs = RadioSetting("menu_available", "Menu Available",
+ RadioSettingValueBoolean(
+ self._memobj.settings.menu_available))
+ top.append(rs)
+
+ rs = RadioSetting("vhf_rx_start", "VHF RX Lower Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.vhf_rx_start)))
+ freqranges.append(rs)
+ rs = RadioSetting("vhf_rx_stop", "VHF RX Upper Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.vhf_rx_stop)))
+ freqranges.append(rs)
+ rs = RadioSetting("uhf_rx_start", "UHF RX Lower Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.uhf_rx_start)))
+ freqranges.append(rs)
+ rs = RadioSetting("uhf_rx_stop", "UHF RX Upper Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.uhf_rx_stop)))
+ freqranges.append(rs)
+ rs = RadioSetting("vhf_tx_start", "VHF TX Lower Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.vhf_tx_start)))
+ freqranges.append(rs)
+ rs = RadioSetting("vhf_tx_stop", "VHF TX Upper Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.vhf_tx_stop)))
+ freqranges.append(rs)
+ rs = RadioSetting("uhf_tx_start", "UHF TX Lower Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.uhf_tx_start)))
+ freqranges.append(rs)
+ rs = RadioSetting("uhf_tx_stop", "UHF TX Upper Limit (MHz)",
+ RadioSettingValueInteger(1, 1000,
+ decode_freq(
+ self._memobj.freq_ranges.uhf_tx_stop)))
+ freqranges.append(rs)
+
+ # tell the decoded ranges to UI
+ self.valid_freq = [
+ ( decode_freq(self._memobj.freq_ranges.vhf_rx_start) * 1000000,
+ (decode_freq(self._memobj.freq_ranges.vhf_rx_stop)+1) * 1000000),
+ ( decode_freq(self._memobj.freq_ranges.uhf_rx_start) * 1000000,
+ (decode_freq(self._memobj.freq_ranges.uhf_rx_stop)+1) * 1000000)]
def _filter(name):
filtered = ""
More information about the chirp_devel
mailing list