<?xml version="1.0"?>

<!--
    Copyright 2018, Daniel Meissner (daniel_hl.83@googlemail.com)
 
    This file is part of the Flightgear CRJ700-family.

    The Flightgear CRJ700-family is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    The Flightgear CRJ700-family 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.

    You should have received a copy of the GNU General Public License
    along with the Flightgear CRJ700-family.  If not, see <http://www.gnu.org/licenses/>.
 -->

<system name="Slats">
	<channel name="Slats">
		<kinematic name="Slats Control">
			<input>/controls/flight/slats-cmd</input>
			<traverse>
				<setting>
					<position>  0 </position>
					<time>      0 </time>
				</setting>
				<setting>
					<position>  15 </position>
					<time>      8 </time>
				</setting>
			</traverse>
			<output>fcs/slat-pos-deg</output>
		</kinematic>
		<aerosurface_scale name="Slat Normalization">
			<input>fcs/slat-pos-deg</input>
			<domain>
				<min>  0 </min>
				<max> 15 </max>
			</domain>
			<range>
				<min> 0 </min>
				<max> 1 </max>
			</range>
			<output>fcs/slat-pos-norm</output>
		</aerosurface_scale>
	</channel>
</system>


