<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2010 All rights reserved -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder-4-15-2.xsd">
	<version author="Michael Mosher" version="1" lastUpdated="20160215"/>
	<!-- new file, based on Wow diesel sound set 2 -->
	<version author="Michael Mosher" version="2" lastUpdated="20160608"/>
	<!-- Fix version IDs -->
	<version author="Michael Mosher" version="3" lastUpdated="20170317"/>
	<!-- update factory resets -->
	<version author="Michael Mosher" version="4" lastUpdated="20170616"/>
	<!-- add funtion output 7 and 8 and update sound none number -->
	<version author="Michael Mosher" version="5" lastUpdated="20180124"/>
	<!-- update bell to same sound option as steam so it shows up on sound pane-->
	<version author="Michael Mosher" version="6" lastUpdated="20180727"/>
	<!-- add read me pane -->
	<version author="Michael Mosher" version="7" lastUpdated="20180813"/>
	<!-- add Play xxx Quill checkboxes -->
	<version author="Konrad Malkowski" version="8" lastUpdated="20230305"/>
	<!-- Remove individual volume panes -->
	<decoder>
		<family name="WOW Diesel Sound Set 3" mfg="Train Control Systems" >
			<model model="WOW Diesel 101 SS3" numOuts="6" numFns="14" maxMotorCurrent="1.3A (peak=2A)" connector="9pin"
				lowVersionID="3" highVersionID="3" productID="170">
				<output name="1" label="White" connection="solder" maxcurrent="100 mA"/>
				<output name="2" label="Yellow" connection="solder" maxcurrent="100 mA"/>
				<output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
				<output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
				<output name="5" label="Brown" connection="solder" maxcurrent="100 mA"/>
				<output name="6" label="Pink" connection="solder" maxcurrent="100 mA"/>
				<output name="Dim"/>
				<output name="Ditch"/>
				<output name="Motor"/>
				<output name="Brake"/>
				<size length="1.35" width="0.66" height="0.22" units="inches"/>
			</model>
			<model model="WOW Diesel 121 SS3" numOuts="8" numFns="14" maxMotorCurrent="1.3A (peak=2A)" connector="21pin"
				lowVersionID="3" highVersionID="3" productID="171">
				<output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
				<output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
				<output name="3" label="Green" connection="plug" maxcurrent="100 mA"/>
				<output name="4" label="Purple" connection="plug" maxcurrent="100 mA"/>
				<output name="5" label="Brown" connection="plug" maxcurrent="logic"/>
				<output name="6" label="Pink" connection="plug" maxcurrent="logic"/>
				<output name="7" label="Pnk/Pur" connection="plug"/>
				<output name="8" label="Grn/Brn" connection="plug"/>
				<output name="Dim"/>
				<output name="Ditch"/>
				<output name="Motor"/>
				<output name="Brake"/>
				<size length="1.28" width="0.69" height="0.22" units="inches"/>
			</model>
			<model model="WOW Diesel 501 SS3" numOuts="6" numFns="14" maxMotorCurrent="5A" formFactor="screw"
				lowVersionID="3" highVersionID="3" productID="172">
				<output name="1" label="White" connection="solder" maxcurrent="100 mA"/>
				<output name="2" label="Yellow" connection="solder" maxcurrent="100 mA"/>
				<output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
				<output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
				<output name="5" label="Brown" connection="solder" maxcurrent="100 mA"/>
				<output name="6" label="Pink" connection="solder" maxcurrent="100 mA"/>
				<output name="Dim"/>
				<output name="Ditch"/>
				<output name="Motor"/>
				<output name="Brake"/>
				<size length="3.00" width="1.45" units="inches"/>
			</model>
			<functionlabels>
				<functionlabel num="0" lockable="true">Headlight</functionlabel>
				<functionlabel num="1" lockable="true">Bell</functionlabel>
				<functionlabel num="2" lockable="false">Horn Long</functionlabel>
				<functionlabel num="3" lockable="true">Horn Short</functionlabel>
				<functionlabel num="4" lockable="true">Horn Quill</functionlabel>
				<functionlabel num="5" lockable="true">Dynamic Brake</functionlabel>
				<functionlabel num="6" lockable="true">Brake Release</functionlabel>
				<functionlabel num="7" lockable="true">Train Brake</functionlabel>
				<functionlabel num="8" lockable="true">Mute</functionlabel>
				<functionlabel num="9" lockable="true">Rotate Horn/Bell</functionlabel>
				<functionlabel num="10" lockable="true">Manual Notch Up</functionlabel>
				<functionlabel num="11" lockable="true">Manual Notch Down</functionlabel>
				<functionlabel num="12" lockable="true">Prime Mover</functionlabel>
				<functionlabel num="13" lockable="true">Coupling</functionlabel>
				<functionlabel num="14" lockable="true">Uncoupling</functionlabel>
				<functionlabel num="15" lockable="true">Mainline/Switching Momentum</functionlabel>
				<functionlabel num="16" lockable="true">Crew Alert</functionlabel>
				<functionlabel num="17" lockable="true">Windshield Wipers</functionlabel>
				<functionlabel num="18" lockable="true">Air Spitter</functionlabel>
			</functionlabels>
		</family>
		<programming direct="yes" paged="yes" register="yes" ops="yes">
			<capability>
				<name>TCS 4 CV access</name>
			</capability>
		</programming>
		<variables>
			<xi:include href="http://jmri.org/xml/decoders/tcs/CV1_CV99_wow.xml"/>
			<xi:include href="http://jmri.org/xml/decoders/tcs/CV100_CV187_wow.xml"/>
			<xi:include href="http://jmri.org/xml/decoders/tcs/CV249_CV252_FW86.xml" />
			<xi:include href="http://jmri.org/xml/decoders/tcs/wowDieselCV.xml" />
			<variable item="Sound Option 3" CV="248" default="3" readOnly="yes">
				<decVal/>
				<label>Sound Set</label>
			</variable>
			<!-- Sound function mapping -->
			<variable item="Function 0 Sound" CV="T2CV.1.00" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>  
			</variable>
			<variable item="Function 1 Sound" CV="T2CV.1.01" default="9" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 2 Sound" CV="T2CV.1.02" default="115" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 3 Sound" CV="T2CV.1.03" default="243" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 4 Sound" CV="T2CV.1.04" default="147" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 5 Sound" CV="T2CV.1.05" default="79" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 6 Sound" CV="T2CV.1.06" default="44" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 7 Sound" CV="T2CV.1.07" default="46" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 8 Sound" CV="T2CV.1.08" default="279" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 9 Sound" CV="T2CV.1.09" default="996" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 10 Sound" CV="T2CV.1.10" default="276" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 11 Sound" CV="T2CV.1.11" default="275" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 12 Sound" CV="T2CV.1.12" default="946" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 13 Sound" CV="T2CV.1.13" default="76" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 14 Sound" CV="T2CV.1.14" default="77" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 15 Sound" CV="T2CV.1.15" default="277" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 16 Sound" CV="T2CV.1.16" default="78" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 17 Sound" CV="T2CV.1.17" default="1060" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 18 Sound" CV="T2CV.1.18" default="4" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 19 Sound" CV="T2CV.1.19" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 20 Sound" CV="T2CV.1.20" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 21 Sound" CV="T2CV.1.21" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 22 Sound" CV="T2CV.1.22" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 23 Sound" CV="T2CV.1.23" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 24 Sound" CV="T2CV.1.24" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 25 Sound" CV="T2CV.1.25" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 26 Sound" CV="T2CV.1.26" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 27 Sound" CV="T2CV.1.27" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Function 28 Sound" CV="T2CV.1.28" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Random 1 Sound" CV="T2CV.1.29" default="0" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Random 2 Sound" CV="T2CV.1.30" default="3" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Random 3 Sound" CV="T2CV.1.31" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
			<variable item="Random 4 Sound" CV="T2CV.1.32" default="1227" mask="VVVVVVVVVVVVVVVV">
				<xi:include href="http://jmri.org/xml/decoders/tcs/enumDiesel03.xml"/>
			</variable>
						
			<!-- sound CVs -->
			<variable item="Sound Group 6 Checkbox 5" CV="T2CV.4.1" default="1" mask="XXXXXXXXXXXXXXXV">
				<xi:include href="http://jmri.org/xml/decoders/parts/enum-OnOff.xml"/>
				<label>Play Short Quill</label>
			</variable>
			<variable item="Sound Group 6 Checkbox 6" CV="T2CV.4.1" default="1" mask="XXXXXXXXXXXXXXVX">
				<xi:include href="http://jmri.org/xml/decoders/parts/enum-OnOff.xml"/>
				<label>Play Medium Quill</label>
			</variable>
			<variable item="Sound Group 6 Checkbox 7" CV="T2CV.4.1" default="1" mask="XXXXXXXXXXXXXVXX">
				<xi:include href="http://jmri.org/xml/decoders/parts/enum-OnOff.xml"/>
				<label>Play Long Quill</label>
			</variable>
			<variable item="Sound Group 6 Checkbox 8" CV="T2CV.4.1" default="0" mask="XXXXXXXXVXXXXXXX">
				<xi:include href="http://jmri.org/xml/decoders/parts/enum-OnOff.xml"/>
				<label>Play Quills in Random Order</label>
				<tooltip>If checked, each secessive press of quill button with play random quill sound, unchecked will play in order</tooltip>
			</variable>
			<variable item="Sound Option 1" CV="T2CV.4.8" default="0" tooltip="Rotate horn function will change this setting">
				<enumVal>
					<enumChoice choice="Fairbanks Morse"/>
					<enumChoice choice="GE 45 tonner"/>
					<enumChoice choice="GE 80 tonner"/>
					<enumChoice choice="GE U-Boat"/>
					<enumChoice choice="Hancock Air Whistle"/>
					<enumChoice choice="Leslie 125"/>
					<enumChoice choice="Leslie 200"/>
					<enumChoice choice="Leslie 3 Chime"/>
					<enumChoice choice="Leslie RS3"/>
					<enumChoice choice="Leslie RS3L"/>
					<enumChoice choice="Leslie RS5T"/>
					<enumChoice choice="Nathan K3"/>
					<enumChoice choice="Nathan K3H #1"/>
					<enumChoice choice="Nathan K3H #2"/>
					<enumChoice choice="Nathan K3LA"/>
					<enumChoice choice="Nathan K3LL"/>
					<enumChoice choice="Nathan K5H"/>
					<enumChoice choice="Nathan K5HL"/>
					<enumChoice choice="Nathan K5LA"/>
					<enumChoice choice="Strasburg #8618 SW8 Nathan K5LA"/>
					<enumChoice choice="Nathan K5LLA"/>
					<enumChoice choice="Nathan M3 #1"/>
					<enumChoice choice="Nathan M3 #2"/>
					<enumChoice choice="Nathan M3 #3"/>
					<enumChoice choice="Nathan M3 Tilt"/>
					<enumChoice choice="Nathan M5"/>
					<enumChoice choice="Nathan P3"/>
					<enumChoice choice="Nathan P5A"/>
					<enumChoice choice="Quincy RR SW8 #1100"/>
					<enumChoice choice="RSD12 #2958"/>
					<enumChoice choice="Galloping Goose #3"/>
					<enumChoice choice="Wabco E2 3 Chime"/>
				</enumVal>
				<label>Default Horn Set</label>
			</variable>
			<variable item="Sound Option 2" CV="T2CV.4.11" default="0">
				<enumVal>
					<enumChoice choice="Alco 244"/>
					<enumChoice choice="Alco 251"/>
					<enumChoice choice="EMD 567 non turbo"/>
					<enumChoice choice="EMD 567 turbo"/>
					<enumChoice choice="EMD 645 turbo"/>
					<enumChoice choice="EMD 710 turbo"/>
					<enumChoice choice="GE FDL16"/>
					<enumChoice choice="GE 7FDL16 #1"/>
					<enumChoice choice="GE 7FDL16 #2"/>
				</enumVal>
				<label>Primemover type</label>
			</variable>
			<variable item="Sound Option 6" CV="T2CV.4.23" default="0" tooltip="Rotate bell function will change this setting">
				<enumVal>
					<enumChoice choice="Electric E-Bell"/>
					<enumChoice choice="Fairbanks Morse"/>
					<enumChoice choice="Galloping Goose #3"/>
					<enumChoice choice="GE 45 tonner"/>
					<enumChoice choice="Western Pacific GP20 #2100"/>
					<enumChoice choice="PRR GG1 Bell"/>
					<enumChoice choice="Niles Canyon Mongo speeder"/>
					<enumChoice choice="John Bull Replica Hand Powered Bell"/>
					<enumChoice choice="Quincy RR SW8 #1100"/>
					<enumChoice choice="Richmond Pacific SW900"/>
					<enumChoice choice="RSD1 #1956"/>
					<enumChoice choice="RSD12 #2958"/>
					<enumChoice choice="Santa Catalina JLA2 Critter 103"/>
					<enumChoice choice="Southern Pacific #1423"/>
					<enumChoice choice="Southern Pacific #3100"/>
					<enumChoice choice="Southern Pacific #5472"/>
					<enumChoice choice="Southern Pacific #5623"/>
					<enumChoice choice="Western Pacific #713"/>
					<enumChoice choice="Western Pacific 918D F unit"/>
					<enumChoice choice="Strasburg #475 Hand Powered bell"/>
					<enumChoice choice="Strasburg #475 Air Powered bell"/>
					<enumChoice choice="Strasburg #89 Air Powered Bell"/>
					<enumChoice choice="Virginia Truckee Railroad 2-6-0 Hand Powered Bell"/>
					<enumChoice choice="PRR 4-4-2 #7002 Hand Powered Bell"/>
					<enumChoice choice="PRR #1223 American 4-4-0 D16SB Hand Powered Bell"/>
					<enumChoice choice="Conrail #2233 GP30 Air Powered Bell"/>
					<enumChoice choice="PRR 2-8-0 H3 1187 Hand Powered Bell"/>
					<enumChoice choice="PRR 2-8-0 H3 2846 Air Powered Bell"/>
					<enumChoice choice="Heisler Class 53833 #4 Hand Powered bell"/>
					<enumChoice choice="Leetonia Railroad Shay #1 Bell"/>
					<enumChoice choice="Unknown Bell from Strasburg museum floor"/>
					<enumChoice choice="Williams Grove PRR #643 0-6-0 Bell"/>
					<enumChoice choice="Strasburg #90 Hand Powered Bell"/>
					<enumChoice choice="Strasburg #90 Hand Powered Bell (Variation)"/>
					<enumChoice choice="Strasburg #90 hand powered double hit"/>
				</enumVal>
				<label>Bell type</label>
			</variable>
		</variables>
		<resets>
      <mode>PAGEMODE</mode>
      <mode>DIRECTMODE</mode>
      <mode>OPSBYTEMODE</mode>
			<factReset label="Entire decoder (except speed table)" CV="8" default="2"/>
			<factReset label="Entire decoder (except address and speed table)" CV="T2CV.5.0" default="2"/>
			<factReset label="All sound settings" CV="T2CV.5.0" default="3"/>
			<factReset label="Sound Function mappings" CV="T2CV.5.0" default="4"/>
			<factReset label="Sound CV's" CV="T2CV.5.0" default="6"/>
			<factReset label="Sound type volumes" CV="T2CV.5.0" default="7"/>
			<factReset label="User Preset 1" CV="T2CV.5.0" default="8"/>
			<factReset label="User Preset 2" CV="T2CV.5.0" default="9"/>
			<factReset label="User Preset 3" CV="T2CV.5.0" default="10"/>
			<factReset label="Quick Lighting Preset: Standard Ditch Lights" CV="8" default="10"/>
			<factReset label="Quick Lighting Preset: Standard Trolley" CV="8" default="11"/>
			<factReset label="Quick Lighting Preset: Modified Trilley" CV="8" default="12"/>
		</resets>
	</decoder>
    <xi:include href="http://jmri.org/xml/programmers/parts/BasicSpeedControlTrimPane.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/Pane_Momentum.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/Pane_Brake.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/Pane_TCS.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/Pane_wow_snd.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/Pane_wow_vol_grp.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/Pane_wow_4cv.xml"/>
	<xi:include href="http://jmri.org/xml/decoders/tcs/paneWowReadMe.xml"/>
</decoder-config>
