<?xml version="1.0"?>
<PropertyList include="walker-include.xml">
	<sim>
		<model>
			<path archive="y">Aircraft/ASK13/Models/ask13.xml</path>
			<rendering>
				<reflection-enabled type="int">1</reflection-enabled>
				<reflection-type type="int">2</reflection-type>
				<reflection-dynamic type="int">1</reflection-dynamic>
				<reflection-correction type="float">0.3</reflection-correction>
				<reflection-fresnel type="float">0.5</reflection-fresnel>
				<reflection-fresnel-factor type="float">1.0</reflection-fresnel-factor>
				<reflection-rainbow type="float">0.1</reflection-rainbow>
				<reflection-noise type="float">0.05</reflection-noise>
				<ambient-correction type="float">0.15</ambient-correction>
			</rendering>
			<window-shader type="bool">0</window-shader>
		</model>
		<systems>
			<wingflexer include="Systems/wingflexer-params.xml"/>
			<property-rule n="101">
				<name>shadow-sys</name>
				<path>Systems/shadow-system.xml</path>
			</property-rule>
			<property-rule n="103">
				<name>wing flexer property rule</name>
				<path>Aircraft/Generic/wingflexer.xml</path>
			</property-rule>
			<property-rule n="104">
				<name>Instrument correction</name>
				<path>Systems/instruments.xml</path>
			</property-rule>
			<property-rule n="105">
				<name>Various Helper Functions</name>
				<path>Systems/helpers.xml</path>
			</property-rule>
			<property-rule n="106">
				<name>Move view according to wingflex</name>
				<path>Systems/wingflex_view.xml</path>
			</property-rule>
			<electrical>
				<path/>
			</electrical>
		</systems>
		<view n="0">
			<name>Default</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<from-model type="bool">true</from-model>
				<from-model-idx type="int">0</from-model-idx>
				<x-offset-m archive="y">0</x-offset-m>
				<y-offset-m archive="y">0.675</y-offset-m>
				<z-offset-m archive="y">1.476</z-offset-m>
				<pitch-offset-deg>-10</pitch-offset-deg>
				<default-field-of-view-deg>55.0</default-field-of-view-deg>
				<limits>
					<enabled type="bool">true</enabled>
					<left>
						<heading-max-deg type="double">160</heading-max-deg>
						<x-offset-max-m type="double">0.15</x-offset-max-m>
						<x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
					</left>
					<right>
						<heading-max-deg type="double">160</heading-max-deg>
						<x-offset-max-m type="double">0.15</x-offset-max-m>
						<x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
					</right>
				</limits>
			</config>
		</view>
		<view n="100">
			<name>Left Below-Wing-Camera</name>
			<type>lookfrom</type>
			<internal type="bool">false</internal>
			<config>
				<from-model type="bool">true</from-model>
				<from-model-idx type="int">0</from-model-idx>
				<x-offset-m archive="y">-2.23595</x-offset-m>
				<y-offset-m archive="y">0.4</y-offset-m>
				<z-offset-m archive="y">2.14024</z-offset-m>
				<default-heading-offset-deg>300</default-heading-offset-deg>
				<pitch-offset-deg>-17.1</pitch-offset-deg>
				<default-field-of-view-deg>94.0</default-field-of-view-deg>
			</config>
		</view>
		<view n="101">
			<name>Right Wingtip Camera</name>
			<type>lookfrom</type>
			<internal type="bool">false</internal>
			<config>
				<from-model type="bool">true</from-model>
				<from-model-idx type="int">0</from-model-idx>
				<x-offset-m archive="y">7.8098</x-offset-m>
				<y-offset-m archive="y">1.15</y-offset-m>
				<z-offset-m archive="y">1.65371</z-offset-m>
				<default-heading-offset-deg>90</default-heading-offset-deg>
				<pitch-offset-deg>0</pitch-offset-deg>
				<default-field-of-view-deg>120.0</default-field-of-view-deg>
			</config>
		</view>
		<view n="102">
			<name>Tail Camera</name>
			<type>lookfrom</type>
			<internal type="bool">false</internal>
			<config>
				<from-model type="bool">true</from-model>
				<from-model-idx type="int">0</from-model-idx>
				<x-offset-m archive="y">0</x-offset-m>
				<y-offset-m archive="y">1.95973</y-offset-m>
				<z-offset-m archive="y">7.16316</z-offset-m>
				<pitch-offset-deg>-10</pitch-offset-deg>
				<default-field-of-view-deg>120.0</default-field-of-view-deg>
			</config>
		</view>
		<view n="103">
			<name>Copilot</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<from-model type="bool">true</from-model>
				<from-model-idx type="int">0</from-model-idx>
				<x-offset-m archive="y">0</x-offset-m>
				<y-offset-m archive="y">0.830</y-offset-m>
				<z-offset-m archive="y">2.529</z-offset-m>
				<pitch-offset-deg>-10</pitch-offset-deg>
				<default-field-of-view-deg>55.0</default-field-of-view-deg>
				<limits>
					<enabled type="bool">true</enabled>
					<left>
						<heading-max-deg type="double">95</heading-max-deg>
						<x-offset-max-m type="double">0.10</x-offset-max-m>
						<x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
					</left>
					<right>
						<heading-max-deg type="double">95</heading-max-deg>
						<x-offset-max-m type="double">0.10</x-offset-max-m>
						<x-offset-threshold-deg type="double">65</x-offset-threshold-deg>
					</right>
				</limits>
			</config>
		</view>
		<view n="1">
			<config>
				<target-y-offset-m archive="y" type="double">0.2</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">2.7</target-z-offset-m>
			</config>
		</view>
		<view n="2">
			<config>
				<target-y-offset-m archive="y" type="double">0.2</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">2.7</target-z-offset-m>
			</config>
		</view>
		<view n="3">
			<config>
				<target-y-offset-m archive="y" type="double">0.2</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">2.7</target-z-offset-m>
			</config>
		</view>
		<view n="4">
			<config>
				<target-y-offset-m archive="y" type="double">0.2</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">2.7</target-z-offset-m>
			</config>
		</view>
		<view n="5">
			<config>
				<target-y-offset-m archive="y" type="double">0.2</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">2.7</target-z-offset-m>
			</config>
		</view>
		<view n="6">
			<config>
				<target-y-offset-m archive="y" type="double">0.2</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">2.7</target-z-offset-m>
			</config>
		</view>
		<help>
			<title>ASK 13</title>
			<key>
				<name>Ctrl-w</name>
				<desc>Place winch in front of aircraft</desc>
			</key>
			<key>
				<name>W</name>
				<desc>Increase winch speed</desc>
			</key>
			<key>
				<name>w</name>
				<desc>Decrease winch speed</desc>
			</key>
			<key>
				<name>Ctrl-o</name>
				<desc>Find aircraft for aerotow</desc>
			</key>
			<key>
				<name>o</name>
				<desc>Open aerotow and winch hooks. This releases the cable if one is attached.</desc>
			</key>
			<key>
				<name>S</name>
				<desc>Increase variometer volume</desc>
			</key>
			<key>
				<name>s</name>
				<desc>Decrease variometer volume</desc>
			</key>
			<key>
				<name>D</name>
				<desc>Toggle windows</desc>
			</key>
			<text>
			=== General Help ===

			- "Throttle" axis (or throttle keys) are connected to the glider's airbrake.
			- The wheel brake is activated progressively by applying more than 85% airbrake.
			- You can take off using a winch or use another aircraft as an aerotow.
			- The winch / aerotow cable can be released with the "o" key or using button 1 of the (first) joystick.
			- NOTE: The Walker uses e (E) and d(D) for walking instead of w and s.

			=== Winch Takeoff Procedure ===

			- Retract speed brake (full throttle).
			- Set trim just forward of the middle position.
			- Press 'Ctrl-w' to place winch.
			- Press 'Shift-w' to start winch and take up cable slack.
			- When the glider starts moving, press 'Shift-w' several times to accelerate the winch
			(up to full speed).
			- Keep the wings level with the aileron and the glider going in a straight line with the rudder.
			Keep elevator centered, the glider will lift off and rotate by automatically as long as the trim is set
			correctly.
			Once the established in the climb, you can pull back on the stick slightly to increase climb rate.
			- Control the winch speed throughout the entire launch. 'Shift-w' makes the winch run faster,
			'w' makes it run slower.
			Try to maintain constant force on the cable, you will need to gradually slow down the winch
			as glider climbs.
			- When the glider reaches the top of the launch, close winch throttle to 5% and press 'o'
			to release the cable.

			=== Aerotow Takeoff Procedure ===

			- Retract speed brake (full throttle)
			- Place another aerotow aircraft in front of your glider (multi-player).
			- Press 'Ctrl-o' to hook to the aerotow.
			- Ask the other aircraft to take off :).
			- Keep wings level and follow the aircraft until after takeoff.
			- The glider should lift off before the tug, stay close to the ground until the tug starts climbing.
			- When at appropriate alitude, press 'o' to release the cable.

			=== Ground handling ===

			This aircraft has some features to help with ground handling:

			- Enable wing holder: the aircraft gets levelled around the x-axis as if
				someone was holding your wing.
			- Enable ground handling: controls are modified to help move the glider around
				on the ground:
				1. All rudder inputs will make the glider turn, as if someone was pulling on the wingtip.
				2. All throttle inputs cause the glider to taxi, as if someone (or a car) was pulling or pushing it.
			- When exceeding a given speed of 15 kts assisting gears will be reset to off (e.g. on takeoff), ground handling will become inactive at 20kts.

			When there is somebody with a follow-me around, you can connect to it by pressing Ctrl+o
			(release: Ctrl+shift+o) so he can carry you around the airport
			or even tow you into the air! (also check the Aerotow Settings therefore).
			</text>
		</help>
		<hitches>
			<aerotow>
				<force_name_jsbsim type="string">aerotow_hitch</force_name_jsbsim>
				<force-is-calculated-by-other type="bool">false</force-is-calculated-by-other>
				<mp-auto-connect-period type="float">0.0</mp-auto-connect-period>
				<tow>
					<length type="float">60</length>
					<elastic-constant type="float">10000</elastic-constant>
					<weight-per-m-kg-m type="float">1</weight-per-m-kg-m>
					<dist type="float">1</dist>
					<connected-to-property-node type="bool"/>
					<brake-force type="float">100000</brake-force>
					<connected-to-ai-or-mp-callsign type="string">*</connected-to-ai-or-mp-callsign>
					<end-force-x type="float">0</end-force-x>
					<end-force-y type="float">0</end-force-y>
					<end-force-z type="float">0</end-force-z>
				</tow>
			</aerotow>
			<winch>
				<force_name_jsbsim type="string">winch_hitch</force_name_jsbsim>
				<automatic-release-angle-deg type="float">70.0</automatic-release-angle-deg>
				<winch>
					<initial-tow-length-m type="float">1000.</initial-tow-length-m>
					<max-tow-length-m type="float">1500.</max-tow-length-m>
					<min-tow-length-m type="float">1.0</min-tow-length-m>
					<max-force-N type="float">9000.0</max-force-N>
					<max-power-kW type="float">255.0</max-power-kW>
					<max-spool-speed-m-s type="float">40</max-spool-speed-m-s>
					<max-unspool-speed-m-s type="float">40.</max-unspool-speed-m-s>
					<spool-acceleration-m-s-s type="float">12.</spool-acceleration-m-s-s>
					<rel-speed alias="/sim/hitches/winch/winch/actual-spool-speed-m-s"/>
				</winch>
				<tow>
					<break-force type="float">10000</break-force>
					<elastic-constant type="float">40000</elastic-constant>
					<weight-per-m-kg-m type="float">0.01</weight-per-m-kg-m>
				</tow>
				<rope>
					<rope-diameter-mm type="float">40</rope-diameter-mm>
				</rope>
			</winch>
			<hook-open type="bool">false</hook-open>
		</hitches>
		<flight-recorder>
			<replay-config type="int">0</replay-config>
			<config n="0" include="/Aircraft/Generic/flightrecorder/generic-glider.xml">
				<!-- Add some custom properties -->
				<signal>
					<type>float</type>
					<property type="string">/velocities/groundspeed-kt</property>
				</signal>
				<signal>
					<type>float</type>
					<property type="string">/fdm/jsbsim/aero/alpha-rad[0]</property>
				</signal>
				<signal>
					<type>float</type>
					<property type="string">/accelerations/pilot-g</property>
				</signal>
				<!-- The ASK13 uses some "virtual" gear (contact points).
                            Their "wow" properties need to be recorded. -->
				<signal>
					<type>bool</type>
					<property type="string">/gear/gear[1]/wow</property>
				</signal>
				<signal>
					<type>bool</type>
					<property type="string">/gear/gear[2]/wow</property>
				</signal>
				<signal>
					<type>bool</type>
					<property type="string">/gear/gear[3]/wow</property>
				</signal>
				<signal>
					<type>bool</type>
					<property type="string">/gear/gear[4]/wow</property>
				</signal>
				<signal>
					<type>bool</type>
					<property type="string">/sim/hitches/winch/open</property>
				</signal>
			</config>
		</flight-recorder>
		<multiplay>
			<generic>
				<!--	INT 0-5 are used for the immatriculation system	-->
				<int n="0" type="int">  0 </int>
				<int n="1" type="int">  0 </int>
				<int n="2" type="int">  0 </int>
				<int n="3" type="int">  0 </int>
				<int n="4" type="int">  0 </int>
				<int n="5" type="int">  0 </int>
				<int n="6" type="int" alias="/sim/model/livery/show-immat"/>
				<int n="7" type="int" alias="/gear/gear[0]/wow"/>
				<int n="8" type="int" alias="/gear/gear[1]/wow"/>
				<int n="9" type="int" alias="/gear/gear[2]/wow"/>
				<float n="0" alias="/canopy/normal-pos-norm"/>
				<float n="1" alias="/canopy/jettison-pos-norm"/>
				<float n="2" alias="/controls/canopy/window-front"/>
				<float n="3" alias="/controls/canopy/window-rear"/>
				<float n="4" alias="/gear/gear[1]/rollspeed-ms"/>
				<float n="5" alias="/gear/gear[2]/rollspeed-ms"/>
				<float n="6"  alias="/sim/systems/wingflexer/z-m"/>
			</generic>
		</multiplay>
		<menubar>
			<default>
				<menu n="10">
					<label>ASK13</label>
					<enabled type="bool">true</enabled>     
					<item>
						<label>Aerotow Settings</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>aerotow_dialog</dialog-name>
						</binding>
					</item>    
					<item>
						<label>Winch Settings</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>winch_dialog</dialog-name>
						</binding>
					</item>  
					<item>
						<label>Select Livery</label>
						<binding>
							<command>nasal</command>
							<script>aircraft.livery.dialog.open()</script>
						</binding>
					</item>  
					<item>
						<label>Ground services</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>groundservice_dialog</dialog-name>
						</binding>
					</item>  
					<item>
						<label>Simulation Options</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>options_dialog</dialog-name>
						</binding>
					</item>  
				</menu>
			</default>
		</menubar>    
		<submodels>
			<serviceable type="bool">true</serviceable>
			<path>Aircraft/ASK13/Models/canopy_submodel.xml</path>
		</submodels>
	</sim>
	<trigger-cmd type="bool">false</trigger-cmd>
	<controls>
		<groundhandling>
			<groundhandling type="bool">false</groundhandling>
			<wingholder type="bool">false</wingholder>
		</groundhandling>
		<electric>
			<battery-connector type="bool">1</battery-connector> <!--Cable from battery to main electrical system-->
		</electric>
		<flight>
			<elevator-trim>0.15</elevator-trim>
			<!-- controllable -->
			<spoilers alias="/controls/flight/elevator-trim"/>
			<!-- spoilers is transmitted via mp (elevator-trim is NOT) -->
		</flight>
		<engines>
			<engine>
				<throttle>1.0</throttle>
			</engine>
		</engines>
	</controls>
	<instrumentation>
		<variometer>
			<te-reading-mps type="double">0.0</te-reading-mps>
		</variometer>
		<mc-cready>
			<rot type="double">0.0</rot>
		</mc-cready>
		<airspeed-indicator>
			<indicated-speed-kt type="double">0.0</indicated-speed-kt>
		</airspeed-indicator>
		<comm>
			<serviceable-int type="int">0</serviceable-int>
			<current-change type="int">0</current-change>
			<sql-ic-pressed type="bool">0</sql-ic-pressed>
			<intercom type="bool">0</intercom>
			<sq type="bool">0</sq>
			<start type="double">0</start>
			<pilot-menu type="int">0</pilot-menu>
			<channel-menu type="int">0</channel-menu>
			<brightness type="double">0.7</brightness>
			<squelch-lim type="double">8</squelch-lim>
			<selected-channel type="int">0</selected-channel>
		</comm>
		<yaw-string n="0">
			<placement-x-m type="double">1.644</placement-x-m>
		</yaw-string>
		<yaw-string n="1">
			<placement-x-m type="double">0.43</placement-x-m>
		</yaw-string>
	</instrumentation>
	<nasal>
		<updateloop>
			<file>Aircraft/Generic/updateloop.nas</file> <!--necessary for electrical system nasal-->
		</updateloop>
		<ask13>
			<file>Aircraft/Instruments-3d/glider/vario/ilec-sc7/ilec-sc7.nas</file>
			<file>Nasal/wool-thread.nas</file>
			<file>Nasal/immat.nas</file>
			<file>Nasal/liveries.nas</file>
			<file>Nasal/jsoverride.nas</file>
			<file>Nasal/electrical.nas</file>
			<file>Nasal/listeners.nas</file>
		</ask13>
		<ar6201>
			<file>Aircraft/Instruments-3d/ar-6201/ar6201.nas</file>
		</ar6201>
		<flarm>
			<file>Aircraft/Instruments-3d/glider/flarm/flarm.nas</file>
		</flarm>
	</nasal>
</PropertyList>
