[chirp_devel] [PATCH] [kguv6d] Add Additional Settings
Jim Unroe
Mon Apr 29 18:24:27 PDT 2013
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1366585686 14400
# Node ID 4b6323bfceed040adae4d03aa64982905b054d39
# Parent f08b832077574e7a40180fb33601d9613c5574cd
[kguv6d] Add Additional Settings
Add sd_available to settings structure
Add 'VFO A Frequency Step' setting (vfo_a_fr_step)
Add 'VFO B Frequency Step' setting (vfo_b_fr_step)
Add 'Time-out Timer' setting (transmit_time_out)
Add 'TX Time-out Alert' setting (tx_time_out_alert)
Add 'Single/Dual Band' setting (sd_available)
Correct 'VFO B current channel' setting range (vfo_b_cur_chan)
Correct 'ANI Code' exception text (ani_id_content)
#801
diff -r f08b83207757 -r 4b6323bfceed chirp/wouxun.py
--- a/chirp/wouxun.py Mon Apr 22 09:52:39 2013 -0700
+++ b/chirp/wouxun.py Sun Apr 21 19:08:06 2013 -0400
@@ -591,7 +591,8 @@
auto_backlight:1;
u8 unknown_flag_20:7,
sos_ch:1;
- u8 unknown_6[2];
+ u8 unknown_6;
+ u8 sd_available;
u8 unknown_flag_21:7,
auto_lock_kbd:1;
u8 unknown_flag_22:4,
@@ -761,8 +762,15 @@
RadioSettingValueList(options,
options[self._memobj.settings.vfo_b_ch_disp]))
top.append(rs)
- # TODO - vfo_a_fr_step
- # TODO -vfo_b_fr_step:3;
+ options = ["2.5", "5.0", "6.25", "10.0", "12.5", "25.0", "50.0", "100.0"]
+ rs = RadioSetting("vfo_a_fr_step", "VFO A Frequency Step",
+ RadioSettingValueList(options,
+ options[self._memobj.settings.vfo_a_fr_step]))
+ top.append(rs)
+ rs = RadioSetting("vfo_b_fr_step", "VFO B Frequency Step",
+ RadioSettingValueList(options,
+ options[self._memobj.settings.vfo_b_fr_step]))
+ top.append(rs)
rs = RadioSetting("vfo_a_squelch", "VFO A Squelch",
RadioSettingValueInteger(0, 9, self._memobj.settings.vfo_a_squelch))
top.append(rs)
@@ -773,7 +781,7 @@
RadioSettingValueInteger(1, 199, self._memobj.settings.vfo_a_cur_chan))
top.append(rs)
rs = RadioSetting("vfo_b_cur_chan", "VFO B current channel",
- RadioSettingValueInteger(0, 199, self._memobj.settings.vfo_b_cur_chan))
+ RadioSettingValueInteger(1, 199, self._memobj.settings.vfo_b_cur_chan))
top.append(rs)
rs = RadioSetting("priority_chan", "Priority channel",
RadioSettingValueInteger(0, 199, self._memobj.settings.priority_chan))
@@ -796,7 +804,14 @@
RadioSettingValueList(options,
options[self._memobj.settings.roger_beep]))
top.append(rs)
- # TODO - transmit_time_out:6;
+ options = ["%s" % x for x in range(15, 615, 15)]
+ rs = RadioSetting("transmit_time_out", "TX Time-out Timer",
+ RadioSettingValueList(options,
+ options[self._memobj.settings.transmit_time_out]))
+ top.append(rs)
+ rs = RadioSetting("tx_time_out_alert", "TX Time-out Alert",
+ RadioSettingValueInteger(0, 10, self._memobj.settings.tx_time_out_alert))
+ top.append(rs)
rs = RadioSetting("vox", "Vox",
RadioSettingValueInteger(0, 10, self._memobj.settings.vox))
top.append(rs)
@@ -819,7 +834,6 @@
RadioSettingValueList(options,
options[self._memobj.settings.ani_id_sidetone]))
top.append(rs)
- # TODO tx_time_out_alert:4;
options = ["Time", "Carrier", "Search"]
rs = RadioSetting("scan_mode", "Scan mode",
RadioSettingValueList(options,
@@ -850,6 +864,13 @@
RadioSettingValueList(options,
options[self._memobj.settings.current_vfo]))
top.append(rs)
+
+ options = ["Dual", "Single"]
+ rs = RadioSetting("sd_available", "Single/Dual Band",
+ RadioSettingValueList(options,
+ options[self._memobj.settings.sd_available]))
+ top.append(rs)
+
_pwd = self._memobj.settings.mode_password
rs = RadioSetting("mode_password", "Mode password (000000 disabled)",
RadioSettingValueInteger(0, 9, _pwd[0]),
@@ -879,8 +900,8 @@
RadioSettingValueInteger(0, 9, _ani[5]))
top.append(rs)
except Exception:
- print ("Your ANI code is not five digits, which is not currently"
- " supported in CHIRP.")
+ print ("Your ANI code is not six digits, which is not currently"
+ " supported in CHIRP.")
return top
More information about the chirp_devel
mailing list