<?xml version="1.0" encoding="UTF-8"?>

<system name="FCS: ercoupe">

 <channel name="Pitch">
  <summer name="Pitch Trim Sum">
   <input>fcs/elevator-cmd-norm</input>
   <input>fcs/pitch-trim-cmd-norm</input>
   <clipto>
    <min>-1</min>
    <max>1</max>
   </clipto>
  </summer>
  <aerosurface_scale name="Elevator Control">
   <input>fcs/pitch-trim-sum</input>
   <range>
    <min>-0.23</min>
    <max>0.23</max>
   </range>
   <output>fcs/elevator-pos-rad</output>
  </aerosurface_scale>
  <aerosurface_scale name="elevator normalization">
   <input>fcs/elevator-pos-rad</input>
   <domain>
    <min>-0.23</min>
    <max>0.23</max>
   </domain>
   <range>
    <min>-1</min>
    <max>1</max>
   </range>
   <output>fcs/elevator-pos-norm</output>
  </aerosurface_scale>
 </channel>

 <channel name="Roll">
  <summer name="Roll Trim Sum">
   <input>fcs/aileron-cmd-norm</input>
   <input>fcs/roll-trim-cmd-norm</input>
   <clipto>
    <min>-1</min>
    <max>1</max>
   </clipto>
  </summer>
  <aerosurface_scale name="Left Aileron Control">
   <input>fcs/roll-trim-sum</input>
   <range>
    <min>-0.35</min>
    <max>0.35</max>
   </range>
   <output>fcs/left-aileron-pos-rad</output>
  </aerosurface_scale>
  <aerosurface_scale name="Right Aileron Control">
   <input>fcs/roll-trim-sum</input>
   <range>
    <min>-0.35</min>
    <max>0.35</max>
   </range>
   <output>fcs/right-aileron-pos-rad</output>
  </aerosurface_scale>
  <aerosurface_scale name="left aileron normalization">
   <input>fcs/left-aileron-pos-rad</input>
   <domain>
    <min>-0.35</min>
    <max>0.35</max>
   </domain>
   <range>
    <min>-1</min>
    <max>1</max>
   </range>
   <output>fcs/left-aileron-pos-norm</output>
  </aerosurface_scale>
  <aerosurface_scale name="right aileron normalization">
   <input>fcs/right-aileron-pos-rad</input>
   <domain>
    <min>-0.35</min>
    <max>0.35</max>
   </domain>
   <range>
    <min>-1</min>
    <max>1</max>
   </range>
   <output>fcs/right-aileron-pos-norm</output>
  </aerosurface_scale>
 </channel>

 <channel name="Yaw">
  <summer name="Rudder Command Sum">
   <input>fcs/aileron-cmd-norm</input>
   <input>fcs/yaw-trim-cmd-norm</input>
   <clipto>
    <min>-0.35</min>
    <max>0.35</max>
   </clipto>
  </summer>
  <aerosurface_scale name="Rudder Control">
   <input>fcs/aileron-cmd-norm</input>
   <range>
    <min>0.35</min>
    <max>-0.35</max>
   </range>
   <output>fcs/rudder-pos-rad</output>
  </aerosurface_scale>
  <aerosurface_scale name="rudder normalization">
   <input>fcs/rudder-pos-rad</input>
   <domain>
    <min>-0.35</min>
    <max>0.35</max>
   </domain>
   <range>
    <min>-1</min>
    <max>1</max>
   </range>
   <output>fcs/rudder-pos-norm</output>
  </aerosurface_scale>
 </channel>

</system>
