<?xml version="1.0"?>
<PropertyList include="walker-include.xml">
	<sim>
		<author>Bea Wolf (D-ECHO), Sven Seipp (D-SVEN), based on ASK21</author>
		<status>beta</status>
		<rating>
			<FDM type="int">2</FDM>
			<systems type="int">2</systems>
			<cockpit type="int">2</cockpit>
			<model type="int">3</model>
		</rating>
		<aircraft-version>2023/05</aircraft-version>
		<previews>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/Splash1.jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/Splash2.jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/Splash3.jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/Splash4.jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/Splash5jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/Splash6.jpg</path>
			</preview>
		</previews>
		<startup>
			<splash-texture>Aircraft/Arcus/Splash/Splash1.jpg</splash-texture>
			<!--for older FG versions-->
		</startup>
		<systems>
			<property-rule n="100">
				<name>helpers</name>
				<path>Systems/helpers.xml</path>
			</property-rule>
			<property-rule n="101">
				<name>Wingflex View Position</name>
				<path>Systems/wingflex_view.xml</path>
			</property-rule>
			<wingflexer include="Systems/wingflexer-params.xml"/>
			<property-rule n="102">
				<name>wing flexer property rule</name>
				<path>Aircraft/Generic/wingflexer.xml</path>
			</property-rule>
			<!--Disable XML electrical system-->
			<electrical>
				<path/>
			</electrical>
		</systems>
		<model>
			<window type="bool">1</window>			<!--Enable window visibility by default-->
			<window-shader type="bool">0</window-shader>	<!--Disable window shader by default-->
			<windows>
				<front type="float">1.0</front>
				<front-small type="float">0.0</front-small>
				<rear type="float">0.0</rear>
				<rear-small type="float">0.0</rear-small>
			</windows>
			<livery>
				<file type="string">D-4626</file>
			</livery>
			<rendering>
				<rain-enabled type="int">2</rain-enabled>
				<reflection-enabled type="int">1</reflection-enabled>
				<reflection-type type="int">1</reflection-type>
				<reflection-dynamic type="int">1</reflection-dynamic>
				<reflection-correction type="float">-0.6</reflection-correction>
				<reflection-fresnel type="float">0.0</reflection-fresnel>
				<reflection-fresnel-factor type="float">0.7</reflection-fresnel-factor>
				<reflection-rainbow type="float">0.0</reflection-rainbow>
				<reflection-noise type="float">0.00</reflection-noise>
				<ambient-correction type="float">0.15</ambient-correction>
			</rendering>
                        <!-- An exit for the walker -->
                        <map>
                                <default_exit>
                                <x-offset-m type="float">-2.8</x-offset-m>
                                <y-offset-m type="float">-1.5</y-offset-m>
                                </default_exit>
                        </map>
		</model>
		<multiplay>
			<chat_display>1</chat_display>
			<generic>
				<int n="0"  type="int" alias="/sim/model/variant"/>
				<!--	4-5 reserved for Arcus M	-->
				<int n="6" type="int" alias="/gear/gear[0]/wow"/>
				<int n="7" type="int" alias="/gear/gear[1]/wow"/>
				<int n="8" type="int" alias="/gear/gear[2]/wow"/>
				<float n="0" alias="/arcus/canopy-norm"/>
				<float n="1" alias="/sim/model/windows/front"/>
				<float n="1" alias="/sim/model/windows/rear"/>
				<float n="3" alias="/gear/gear[0]/rollspeed-ms"/>
				<float n="4" alias="/gear/gear[1]/rollspeed-ms"/>
				<float n="5" alias="/gear/gear[2]/rollspeed-ms"/>
				<float n="6" alias="/surface-positions/speedbrake-pos-norm"/>
				<float n="7" alias="/sim/systems/wingflexer/z-m"/>
				<!--	8-10 reserved for Arcus M	-->
				<int n="11" type="int" alias="/fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[0]"/>
				<int n="12" type="int" alias="/fdm/jsbsim/systems/water-ballast/wing-outflow-rate-pps[1]"/>
				<int n="13" type="int" alias="/fdm/jsbsim/systems/water-ballast/tail-outflow-rate-pps"/>
			</generic>
		</multiplay>
		<help>
			<title>Schempp-Hirth Arcus</title>
			<key>
				<name>Ctrl-w</name>
				<desc>Place winch in front of aircraft</desc>
			</key>
			<key>
				<name>W</name>
				<desc>Toggle winch hook</desc>
			</key>
			<key>
				<name>w</name>
				<desc>Increase winch speed</desc>
			</key>
			<key>
				<name>Ctrl-o</name>
				<desc>Find aircraft for aerotow</desc>
			</key>
			<key>
				<name>o</name>
				<desc>Lock aerotow hook</desc>
			</key>
			<key>
				<name>O</name>
				<desc>Open aerotow hook</desc>
			</key>
			<text>
				=== General Help ===
				- "Throttle" axis (or throttle keys) are connected to the glider's airbrake.
				- You can take off using a winch or use another aircraft as an aerotow.
				- The Walker uses e (E) and d(D) for walking instead of w and s!!!!
				
				=== Winch Takeoff Procedure ===
				1. Retract speed brake (full "throttle")
				2. Press Ctrl-w to place winch.
				3. Press 'w' to start winching.
				4. Keep 'w' pressed until at appropriate speed. Holding 'w' makes the winch run faster, releasing it makes it run slower.
				5. Keep wings level and take off.
				6. When at appropriate alitude, press 'O' to release the cable.
				7. Fly!
				
				=== Aerotow Takeoff Procedure ===
				1. Retract speed brake (full "throttle")
				2. Place another aerotwo aircraft in front of your glider (multi-player).
				3. Press 'o' to hook to the aerotow.
				4. Ask the other aircraft to take off :).
				5. Keep wings level and follow the aircraft until after takeoff..
				6. When at appropriate alitude, press 'O' to release the cable.
				7. Fly!
				
				=== Ground handling ===
				This aircraft has some features to help with ground handling:
				
				- When pressing "Toggle assiting gears" the aircraft gets levelled around the x-axes as if someone was holding your wing.
				- When pressing "Toggle ground handling", two features are enanled to pull the aircraft around on the ground:
				1. All rudder inputs are copied to a thruster, as if someone was pulling your wing so the aircraft turns.
				2. All throttle inputs cause your aircraft to taxi, as if someone (or a car) was pulling/pushing it.
				When there is somebody with a followme 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>
		<!-- hide the 2D panel -->
		<panel>
			<visibility archive="y">false</visibility>
		</panel>
		<!-- Views -->
		<view n="0">
			<name>Pilot View</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
				<x-offset-m type="double">0.0</x-offset-m>
				<y-offset-m type="double">0.18</y-offset-m>
				<z-offset-m type="double">-2.51535</z-offset-m>
				<pitch-offset-deg>-8</pitch-offset-deg>
				<limits>
					<enabled type="bool">false</enabled>
					<left>
						<heading-max-deg type="double">120</heading-max-deg>
						<x-offset-max-m type="double">0.10</x-offset-max-m>
						<x-offset-threshold-deg type="double">45</x-offset-threshold-deg>
					</left>
					<right>
						<heading-max-deg type="double">160</heading-max-deg>
						<x-offset-max-m type="double">0.20</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 View</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<from-model type="bool">true</from-model>
				<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
				<heading-offset-deg type="double">300</heading-offset-deg>
				<x-offset-m archive="y" type="double">-2.58654</x-offset-m>
				<y-offset-m archive="y" type="double">.0.1</y-offset-m>
				<z-offset-m archive="y" type="double">-1.53362</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>120.0</default-field-of-view-deg>
			</config>
		</view>
		<view n="101">
			<name>Right Wingtip Camera View</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<from-model type="bool">true</from-model>
				<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
				<heading-offset-deg type="double">90</heading-offset-deg>
				<x-offset-m archive="y" type="double">8.34341</x-offset-m>
				<y-offset-m archive="y" type="double">1.5</y-offset-m>
				<z-offset-m archive="y" type="double">-1.35395</z-offset-m>
				<default-heading-offset-deg>90</default-heading-offset-deg>
				<pitch-offset-deg>00</pitch-offset-deg>
				<default-field-of-view-deg>120.0</default-field-of-view-deg>
			</config>
		</view>
		<view n="102">
			<name>Tail Camera View</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<from-model type="bool">true</from-model>
				<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
				<heading-offset-deg type="double">0</heading-offset-deg>
				<x-offset-m archive="y" type="double">0.0</x-offset-m>
				<y-offset-m archive="y" type="double">2.15879</y-offset-m>
				<z-offset-m archive="y" type="double">0.91</z-offset-m>
				<default-heading-offset-deg>0</default-heading-offset-deg>
				<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/Instructor View</name>
			<type>lookfrom</type>
			<internal type="bool">true</internal>
			<config>
				<from-model type="bool">true</from-model>
				<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
				<heading-offset-deg type="double">0</heading-offset-deg>
				<x-offset-m archive="y" type="double">0.0</x-offset-m>
				<y-offset-m archive="y" type="double">0.18</y-offset-m>
				<z-offset-m archive="y" type="double">-1.57576</z-offset-m>
				<default-heading-offset-deg>0</default-heading-offset-deg>
				<pitch-offset-deg>-10</pitch-offset-deg>
				<default-field-of-view-deg>55.0</default-field-of-view-deg>
				<limits>
					<enabled type="bool">false</enabled>
					<left>
						<heading-max-deg type="double">120</heading-max-deg>
						<x-offset-max-m type="double">0.28</x-offset-max-m>
						<x-offset-threshold-deg type="double">0</x-offset-threshold-deg>
					</left>
					<right>
						<heading-max-deg type="double">170</heading-max-deg>
						<x-offset-max-m type="double">0.25</x-offset-max-m>
						<x-offset-threshold-deg type="double">0</x-offset-threshold-deg>
					</right>
				</limits>
			</config>
		</view>
		<!--Set the view center to be between the wing roots-->
		<view n="1">
			<config>
				<target-y-offset-m archive="y" type="double">0.76533</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">-1.0496</target-z-offset-m>
			</config>
		</view>
		<view n="2">
			<config>
				<target-y-offset-m archive="y" type="double">0.76533</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">-1.0496</target-z-offset-m>
			</config>
		</view>
		<view n="3">
			<config>
				<target-y-offset-m archive="y" type="double">0.76533</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">-1.0496</target-z-offset-m>
			</config>
		</view>
		<view n="4">
			<config>
				<target-y-offset-m archive="y" type="double">0.76533</target-y-offset-m>
				<target-z-offset-m archive="y" type="double">-1.0496</target-z-offset-m>
			</config>
		</view>
		<menubar>
			<default>
				<menu n="10">
					<label>Arcus</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>Simulation Options</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>options_dialog</dialog-name>
						</binding>
					</item>
					<item>
						<label>Ground services</label>
						<binding>
							<command>dialog-show</command>
							<dialog-name>groundservice_dialog</dialog-name>
						</binding>
					</item>
					<item>
						<label>Select Livery</label>
						<binding>
							<command>nasal</command>
							<script>aircraft.livery.dialog.open()</script>
						</binding>
					</item>
				</menu>
			</default>
		</menubar>
		<hitches>
			<!-- make sure some properties do exist, when the list for multiplayer transfere is defined-->
			<!-- they need to be in the same value, as they are initilized in the FDM, to get the same values after reset
			should fix this somehow-->
			<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">-3.50</end-force-x>
					<end-force-y type="float">0</end-force-y>
					<end-force-z type="float">0</end-force-z>
				</tow>
				<speed-in-tow-direction type="float">0</speed-in-tow-direction>
				<open type="bool">true</open>
				<is-slave type="bool">false</is-slave>
			</aerotow>
			<winch>
				<automatic-release-angle-deg type="float">80.0</automatic-release-angle-deg>
				<aircraft-speed>0.8</aircraft-speed>
			</winch>
		</hitches>
		<flaps>
			<setting>0</setting>
			<!--S-->
			<setting>0.2</setting>
			<!-- -1 -->
			<setting>0.3</setting>
			<!-- -1 -->
			<setting>0.4</setting>
			<!--  0 -->
			<setting>0.5</setting>
			<!-- +1 -->
			<setting>0.6</setting>
			<!-- +2 -->
			<setting>0.7</setting>
			<!--  L -->
		</flaps>
		<glider>
			<winch>
				<conf>
					<rope_initial_length_m>1000.0</rope_initial_length_m>
					<pull_max_lbs>1911</pull_max_lbs> <!-- 850daN -->
				</conf>
			</winch>
			<towing>
				<conf>
					<rope_length_m>60.0</rope_length_m>
					<nominal_towforce_lbs>500.0</nominal_towforce_lbs>
					<breaking_towforce_lbs>9999.0</breaking_towforce_lbs>
				</conf>
				<hooked>0</hooked>
			</towing>
			<ac-designator type="string">Arcus (S)</ac-designator>
		</glider>
	</sim>
	<arcus>
		<canopy-cmd type="bool">0</canopy-cmd>
	</arcus>
	<payload>
		<weight n="0">
			<name>Pilot</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[0]" />
			<min-lb type="double">0</min-lb>
			<max-lb type="double">250</max-lb>
		</weight>
		<weight n="1">
			<name>Passenger/Instructor</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[1]" />
			<min-lb type="double">0</min-lb>
			<max-lb type="double">250</max-lb>
		</weight>
		<weight n="2">
			<name>Water Ballast (Left Wing)</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[2]" />
			<max-lb>202.825</max-lb>
			<!--92 liter water-->
			<min-lb>0</min-lb>
		</weight>
		<weight n="3">
			<name>Water Ballast (Right Wing)</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[3]" />
			<max-lb>202.825</max-lb>
			<!--92 liter water-->
			<min-lb>0</min-lb>
		</weight>
		<weight n="4">
			<name>Tail Ballast</name>
			<weight-lb alias="/fdm/jsbsim/inertia/pointmass-weight-lbs[4]" />
			<max-lb>24.2508</max-lb>
			<!--11 liter water-->
			<min-lb>0</min-lb>
		</weight>
	</payload>
	<limits>
		<max-spoiler-extension-speed>151.2</max-spoiler-extension-speed>
		<vne>151.2</vne>
		<vmo>97.2</vmo>
		<max-positive-g-vmo>5.3</max-positive-g-vmo>
		<max-negative-g-vmo>-2.65</max-negative-g-vmo>
		<max-positive-g-vne>4.0</max-positive-g-vne>
		<max-negative-g-vne>-1.5</max-negative-g-vne>
		<mtow-lbs>1763.7</mtow-lbs>
	</limits>
	<controls>
		<engines>
			<engine>
				<throttle>1.0</throttle>
			</engine>
		</engines>
		<water-ballast>
			<outflow-valve type="float">0.0</outflow-valve>
		</water-ballast>
		<groundhandling>
			<wingholder type="bool">0</wingholder>
			<groundhandling type="bool">0</groundhandling>
		</groundhandling>
		<winch>
			<place type="bool">false</place>
		</winch>
		<aerotow>
			<find-aircraft type="bool">false</find-aircraft>
		</aerotow>
	</controls>
	<input>
		<keyboard>
			<key n="21">
				<name>Ctrl-U</name>
				<desc>[Cheat] Add 1000ft of emergency altitude</desc>
				<binding>
					<command>property-adjust</command>
					<property>/position/altitude-ft</property>
					<step type="double">1000.0</step>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>/sim/startup/onground</property>
					<value type="bool">false</value>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>/sim/multiplay/chat</property>
					<value>I used Ctrl-u</value>
				</binding>
			</key>
			<key n="127">
				<name>Delete</name>
				<desc>Toggle Reversers</desc>
				<binding>
					<condition>
						<less-than>
							<property>controls/engines/engine[0]/throttle</property>
							<value>0.1</value>
						</less-than>
					</condition>
					<command>property-toggle</command>
					<property>controls/engines/engine[0]/reverser</property>
				</binding>
			</key>
			<key n="15">
				<name>Ctrl-o</name>
				<desc>Find aircraft for aerotow</desc>
				<binding>
					<command>nasal</command>
					<script>towing.findBestAIObject()</script>
				</binding>
			</key>
			<key n="111">
				<name>o</name>
				<desc>Lock aerotow-hook</desc>
				<binding>
					<command>nasal</command>
					<script>towing.closeHitch()</script>
				</binding>
			</key>
			<key n="79">
				<name>O</name>
				<desc>Open hook</desc>
				<binding>
					<command>property-assign</command>
					<property>/sim/hitches/hook-open</property>
					<value type="bool">true</value>
				</binding>
				<binding>
					<command>property-assign</command>
					<property>/controls/groundhandling/wingholder</property>
					<value type="bool">false</value>
				</binding>
				<binding>
					<command>nasal</command>
					<script>towing.releaseHitch("winch")</script>
				</binding>
				<binding>
					<command>nasal</command>
					<script>towing.releaseHitch("aerotow")</script>
				</binding>
				<mod-up>
					<binding>
						<command>property-assign</command>
						<property>/sim/hitches/hook-open</property>
						<value type="bool">false</value>
					</binding>
				</mod-up>
			</key>
			<key n="23">
				<name>Ctrl-w</name>
				<desc>Place Winch and hook in</desc>
				<binding>
					<command>nasal</command>
					<script>arcus.placeWinch();
						arcus.startWinch();</script>
				</binding>
			</key>
			<key n="87">
				<name>W</name>
				<desc>Increase winch speed</desc>
				<binding>
					<command>nasal</command>
					<script>arcus.winch_faster()</script>
				</binding>
			</key>
			<key n="119">
				<name>w</name>
				<desc>Decrease winch speed</desc>
				<binding>
					<command>nasal</command>
					<script>arcus.winch_slower()</script>
				</binding>
			</key>
			<!--Helper Functions-->
			<key n="113">
				<name>q</name>
				<desc>Show current QNH and current pressure</desc>
				<binding>
					<command>nasal</command>
					<script>qnh=getprop("/environment/pressure-sea-level-hpa");
						cp=getprop("environment/pressure-hpa");
						gui.popupTip(sprintf("Current QNH %d, current pressure (QFE when on ground) %d", qnh, cp));</script>
				</binding>
			</key>
			<key n="81">
				<name>Q</name>
				<desc>Show current wind data</desc>
				<binding>
					<command>nasal</command>
					<script>arcus.windcheck();</script>
				</binding>
			</key>
		</keyboard>
	</input>
	<instrumentation>
		<lx9050>
			<switch type="bool">false</switch>
		</lx9050>
		<transponder>
			<knob-mode type="int">0</knob-mode>	<!--This Arcus is not equipped with a transponder-->
		</transponder>
	</instrumentation>
	<nasal>
		<updateloop>
			<file>Aircraft/Generic/updateloop.nas</file>	<!--necessary for electrical system nasal-->
		</updateloop>
		<s3>
			<file>Aircraft/Instruments-3d/glider/vario/S3/S3.nas</file>
		</s3>
		<arcus>
			<file>Nasal/winch_jsb.nas</file>
			<file>Nasal/jsoverride.nas</file>
			<file>Nasal/limits.nas</file>
			<file>Nasal/arcus.nas</file>
			<file>Nasal/vario.nas</file>
		</arcus>
		<ar6201>
			<file>Aircraft/Instruments-3d/ar-6201/ar6201.nas</file>
		</ar6201>
		<ilec-sc7>
			<file>Aircraft/Instruments-3d/glider/vario/ilec-sc7/ilec-sc7.nas</file>
		</ilec-sc7>
		<flarm>
			<file>Aircraft/Instruments-3d/glider/flarm/flarm.nas</file>
		</flarm>
                <canvas_lx9050>
			<file>Models/Interior/Panel/Instruments/LX9050/LX9050_map.nas</file>
			<file>Models/Interior/Panel/Instruments/LX9050/LX9050.nas</file>
		</canvas_lx9050>
		<water_ballast>
			<file>Nasal/waterballast.nas</file>
		</water_ballast>
	</nasal>
</PropertyList>
