<?xml version="1.0" encoding="ISO-8859-1"?>
<?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.xsd">
  <version author="Michael Mosher" version="1" lastUpdated="20100204"/>
<!-- Version 1 - new file -->
  <decoder>
    <family name="MTH HO PS3" mfg="Mikes Train House">
      <model model="MTH HO PS3"/>
    </family>
    <programming direct="no" paged="no" register="no" ops="yes"/>
    <variables>
      <variable label="Short Address" CV="1" comment="Short address" item="Short Address" default="03">
        <shortAddressVal/>
        <label>Short Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Acceleration Rate" CV="3" item="Accel">
        <decVal max="255"/>
        <label>Acceleration Rate</label>
      </variable>
      <variable label="Deceleration Rate" CV="4" item="Decel">
        <decVal max="255"/>
        <label>Deceleration Rate</label>
      </variable>
      <variable label="Extended Address" CV="17" item="Long Address" tooltip="Sets the Extended (4 digit) address, range 0-9999, mapped to CV17 and 18">
        <longAddressVal/>
        <label>Extended Address</label>
      </variable>
      <variable label="Speed steps" CV="29" mask="XXXXXXVX" item="Speed Step Mode" default="1">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128">
            <choice>28/128</choice>
          </enumChoice>
        </enumVal>
        <label>Speed steps</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="Short Address Alt Access" CV="49" comment="Short address" default="03">
        <shortAddressVal/>
        <label>Short Address Alt Access</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Extended Address Alt Access" CV="50" tooltip="Sets the Extended (4 digit) address, range 0-9999, mapped to CV17 and 18">
        <longAddressVal/>
        <label>Extended Address Alt Access</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="55" default="55"/>
    </resets>
  </decoder>
  <pane name="MTH">
    <column>
      <display item="Short Address Alt Access"/>
      <display item="Extended Address Alt Access"/>
      <label label="For controllers that prohibit address changes on POM (Ops mode programming)">
        <label>For controllers that prohibit address changes on POM (Ops mode programming)</label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label="Reset only works if value of 55 is sent to CV55 on address 55.">
        <label>Reset only works if value of 55 is sent to CV55 on address 55.</label>
      </label>
    </column>
    <name>MTH</name>
  </pane>
</decoder-config>

