<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!-- $Id: MRC_Athearn_Challenger.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- 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="Bob Jacobsen" version="1" lastUpdated="20071221"/>
  <version author="Marc Fournier forfoum@videotron.ca" version="2" lastUpdated="20090624"/>
<!-- Ver 1  Made from the MRC_1645 file                             -->
<!-- Ver 2  Cleanup, Move consist related items in to consist tab   -->
  <decoder>
    <family name="Athearn" mfg="MRC" lowVersionID="32" highVersionID="32">
      <model model="Athearn Genesis Challenger" numOuts="2" numFns="12" maxTotalCurrent="1.5A" extFnsNmraF13="yes">
<!-- note All 28 functions are NMRA compatible -->
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
<!-- Note Mfg. recognizes CV read back is not 100% correct -->
    <variables>
      <variable label="Short address" CV="1" comment="Range 1-127" item="Short Address" default="3">
        <shortAddressVal/>
        <label>Short address</label>
        <comment>Range 1-127</comment>
      </variable>
      <variable label="Start voltage" CV="2" item="Vstart" default="0" comment="Range 0-32">
        <decVal max="32"/>
        <label>Start voltage</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Acceleration" CV="3" item="Accel" default="0" comment="Range 0-32">
        <decVal max="32"/>
        <label>Acceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Deceleration" CV="4" item="Decel" default="0" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Top voltage" CV="5" item="Vhigh" default="32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Top voltage</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Manufacturer version number" CV="7" readOnly="yes" item="Decoder Version" default="32">
        <decVal/>
        <label>Manufacturer version number</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer" default="143">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Long address" CV="17" item="Long Address" comment="4 digit address (Range 1-9999)">
        <longAddressVal/>
        <label>Long address</label>
        <comment>4 digit address (Range 1-9999)</comment>
      </variable>
      <variable label="Advanced consist address" CV="19" mask="XVVVVVVV" item="Consist Address">
        <decVal/>
        <label>Advanced consist 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 (recommended)">
            <choice>28/128 (recommended)</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Steps</label>
      </variable>
      <variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="0" item="Analog (DC) Operation">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog conversion mode</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="Sound volume min/max" CV="52" item="Sound Option 1" default="0" comment="Range 0 or 1">
        <enumVal>
          <enumChoice choice="Min">
            <choice>Min</choice>
          </enumChoice>
          <enumChoice choice="Max">
            <choice>Max</choice>
          </enumChoice>
        </enumVal>
        <label>Sound volume min/max</label>
        <comment>Range 0 or 1</comment>
      </variable>
      <variable label="Chuff Rate" CV="64" item="Sound Setting 1" default="5" comment="Range 0-10">
        <decVal max="10"/>
        <label>Chuff Rate</label>
        <comment>Range 0-10</comment>
      </variable>
      <variable label="User ID #1" CV="105" item="User Id #1" default="0" comment="Range 0-255">
        <decVal max="255"/>
        <label>User ID #1</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="User ID #2" CV="106" item="User Id #2" default="0" comment="Range 0-255">
        <decVal max="255"/>
        <label>User ID #2</label>
        <comment>Range 0-255</comment>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="125" default="1"/>
    </resets>
  </decoder>
  <pane name="MRC">
    <column>
      <label label=" MRC NOTE ">
        <label> MRC NOTE </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label="This decoder supports all program methods including ">
        <label>This decoder supports all program methods including </label>
      </label>
      <label label="register mode, paged mode, CV programming, direct ">
        <label>register mode, paged mode, CV programming, direct </label>
      </label>
      <label label="mode and programming on the main (OPS mode programming).">
        <label>mode and programming on the main (OPS mode programming).</label>
      </label>
      <label label="Program the locomotive the same way you would program ">
        <label>Program the locomotive the same way you would program </label>
      </label>
      <label label="any other NMRA compatible decoder with your">
        <label>any other NMRA compatible decoder with your</label>
      </label>
      <label label="DCC system.">
        <label>DCC system.</label>
      </label>
    </column>
    <name>MRC</name>
  </pane>
</decoder-config>

