[chirp_devel] [PATCH 0 of 3 ] FT857 more settings support
Another step in the direction of supporting all settings
73 de IZ3GME Marco
# HG changeset patch # User Filippi Marco iz3gme.marco@gmail.com # Date 1376588338 -7200 # Node ID d5572c060fccb14aba86cb9031f5933b571920c0 # Parent 694317870830b14ed563de115c36c82c4fb7c6fd [ft857] Add more settings support first bunch of panel settings Implements part of #569
diff --git a/chirp/ft857.py b/chirp/ft857.py --- a/chirp/ft857.py +++ b/chirp/ft857.py @@ -105,12 +105,21 @@ u8 name[8]; };
- #seekto 0x5; + #seekto 0x4; struct { - u8 unknown1:4, + u8 fst:1, + lock:1, + nb:1, + unknown1:2, + disp:1, + agc:2; + u8 vox:1, + unknown2:1, + bk:1, + kyr:1, cw_speed_unit:1, cw_key_rev:1, - unknown2:2; + pwr_meter_mode:2; u8 unknown3[2]; u8 disp_mode:2, unknown4:2, @@ -860,6 +869,42 @@ options[_settings.xvtr_sel])) extended.append(rs)
+ rs = RadioSetting("disp", "Display large", + RadioSettingValueBoolean(_settings.disp)) + panel.append(rs) + rs = RadioSetting("nb", "Noise blanker", + RadioSettingValueBoolean(_settings.nb)) + panelcontr.append(rs) + options = ["Auto", "Fast", "Slow", "Off"] + rs = RadioSetting("agc", "AGC", + RadioSettingValueList(options, + options[_settings.agc])) + panelcontr.append(rs) + options = ["PWR", "ALC", "SWR", "MOD"] + rs = RadioSetting("pwr_meter_mode", "Power meter mode", + RadioSettingValueList(options, + options[_settings.pwr_meter_mode])) + panelcontr.append(rs) + rs = RadioSetting("vox", "Vox", + RadioSettingValueBoolean(_settings.vox)) + panelcontr.append(rs) + rs = RadioSetting("bk", "Semi break-in", + RadioSettingValueBoolean(_settings.bk)) + cw.append(rs) + rs = RadioSetting("kyr", "Keyer", + RadioSettingValueBoolean(_settings.kyr)) + cw.append(rs) + options = ["enabled", "disabled"] + rs = RadioSetting("fst", "Fast", + RadioSettingValueList(options, + options[_settings.fst])) + panelcontr.append(rs) + options = ["enabled", "disabled"] + rs = RadioSetting("lock", "Lock", + RadioSettingValueList(options, + options[_settings.lock])) + panelcontr.append(rs) + return top
def set_settings(self, settings):
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1376588343 -7200 # Node ID 19c6ac52a4e99daff72384a492b2e5e40b5ddc4c # Parent d5572c060fccb14aba86cb9031f5933b571920c0 [ft857] Remove unused settings tab part of #569
diff --git a/chirp/ft857.py b/chirp/ft857.py --- a/chirp/ft857.py +++ b/chirp/ft857.py @@ -484,10 +484,9 @@ packet = RadioSettingGroup("packet", "Digital & packet") panel = RadioSettingGroup("panel", "Panel settings") extended = RadioSettingGroup("extended", "Extended") - antenna = RadioSettingGroup("antenna", "Antenna selection") panelcontr = RadioSettingGroup("panelcontr", "Panel controls") top = RadioSettingGroup("top", "All Settings", basic, cw, packet, - panelcontr, panel, extended, antenna) + panelcontr, panel, extended)
rs = RadioSetting("extended_menu", "Extended menu", RadioSettingValueBoolean(_settings.extended_menu))
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1376588349 -7200 # Node ID 01073dd3c6f4adfcd57e56deb2657fceacfe3499 # Parent 19c6ac52a4e99daff72384a492b2e5e40b5ddc4c [ft857] Add more settings support another bunch of panel settings Implements part of #569
diff --git a/chirp/ft857.py b/chirp/ft857.py --- a/chirp/ft857.py +++ b/chirp/ft857.py @@ -247,7 +247,11 @@ u8 beacon_time; u8 unknown36[2]; u8 dig_vox_enable:1, - unknown37:7; + unknown37:2, + scope_peakhold:1, + scope_width:2, + proc:1, + unknown38:1; u8 unknown39:1, rf_power_6m:7; u8 unknown40:1, @@ -903,6 +907,17 @@ RadioSettingValueList(options, options[_settings.lock])) panelcontr.append(rs) + rs = RadioSetting("scope_peakhold", "Scope max hold", + RadioSettingValueBoolean(_settings.scope_peakhold)) + panelcontr.append(rs) + options = ["21", "31", "127"] + rs = RadioSetting("scope_width", "Scope width (channels)", + RadioSettingValueList(options, + options[_settings.scope_width])) + panelcontr.append(rs) + rs = RadioSetting("proc", "Speech processor", + RadioSettingValueBoolean(_settings.proc)) + panelcontr.append(rs)
return top
participants (1)
-
Marco Filippi IZ3GME