<?xml version="1.0"?>
<!--
  ASK-13 multiplayer passenger view.

  based on dual control code by Anders Gidenstam
  This file is licensed under the GPL license version 2 or later.
-->
<!--
  Usage: fgfs - -prop:/sim/remote/pilot-callsign="remote pilot callsign" - -aircraft=ask13-passenger
-->
<PropertyList>
	<sim>
		<description>Schleicher ASK13 Passenger View</description>
		<author>Benedikt Wolf (D-ECHO), Patrice Poly</author>
		<status>early-production</status>
		<aircraft-version>201910</aircraft-version>
		<variant-of>ask13</variant-of>
		<tags>
			<tag>glider</tag>
			<tag>1960s</tag>
			<tag>1970s</tag>
			<tag>1980s</tag>
			<tag>dual-controls</tag>
		</tags>
		<flight-model>null</flight-model>
		<previews>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/exterior1.jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/exterior2.jpg</path>
			</preview>
			<preview>
				<type>exterior</type>
				<splash type="bool">true</splash>
				<path>Splash/exterior3.jpg</path>
			</preview>
			<preview>
				<type>cockpit</type>
				<splash type="bool">true</splash>
				<path>Splash/cockpit1.jpg</path>
			</preview>
			<preview>
				<type>cockpit</type>
				<splash type="bool">true</splash>
				<path>Splash/cockpit2.jpg</path>
			</preview>
			<preview>
				<type>cockpit</type>
				<splash type="bool">true</splash>
				<path>Splash/cockpit3.jpg</path>
			</preview>
		</previews>
		<startup>
			<splash-texture>Aircraft/ASK13/splash.png</splash-texture>
		</startup>
		<presets>
			<onground type="bool">false</onground>
			<altitude-agl-ft type="double">30.0</altitude-agl-ft>
		</presets>
		<!-- 3d model -->
		<model>
			<path>Aircraft/ASK13/Models/ask13-passenger.xml</path>
		</model>
		<!-- Views -->
		<view n="0">
			<!-- Passenger's position. -->
			<name>Copilot View</name>
			<type>lookfrom</type>
			<config>
				<internal type="bool">true</internal>
				<from-model type="bool">false</from-model>
				<from-model-idx type="int">0</from-model-idx>
				<eye-lat-deg-path>/position/latitude-deg</eye-lat-deg-path>
				<eye-lon-deg-path>/position/longitude-deg</eye-lon-deg-path>
				<eye-alt-ft-path>/position/altitude-ft</eye-alt-ft-path>
				<eye-heading-deg-path>/orientation/heading-deg</eye-heading-deg-path>
				<eye-pitch-deg-path>/orientation/pitch-deg</eye-pitch-deg-path>
				<eye-roll-deg-path>/orientation/roll-deg</eye-roll-deg-path>
				<!-- x/y/z == right/up/back -->
				<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>
		<!-- Views -->
		<view n="101">
			<!-- Pilot's position. -->
			<name>Pilot View</name>
			<type>lookfrom</type>
			<config>
				<internal type="bool">true</internal>
				<from-model type="bool">false</from-model>
				<eye-lat-deg-path>/position/latitude-deg</eye-lat-deg-path>
				<eye-lon-deg-path>/position/longitude-deg</eye-lon-deg-path>
				<eye-alt-ft-path>/position/altitude-ft</eye-alt-ft-path>
				<eye-heading-deg-path>/orientation/heading-deg</eye-heading-deg-path>
				<eye-pitch-deg-path>/orientation/pitch-deg</eye-pitch-deg-path>
				<eye-roll-deg-path>/orientation/roll-deg</eye-roll-deg-path>
				<!-- x/y/z == right/up/back -->
				<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="1">
			<config>
				<at-model type="bool">true</at-model>
				<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>
				<at-model type="bool">true</at-model>
				<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>
				<at-model type="bool">true</at-model>
				<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>
				<at-model type="bool">true</at-model>
				<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>
				<at-model type="bool">true</at-model>
				<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>
				<at-model type="bool">false</at-model>
			</config>
		</view>
		<chase-distance-m type="double">-18.0</chase-distance-m>
		<sound>
			<audible>true</audible>
			<path>Aircraft/ASK13/Sounds/ask13-passenger-sound.xml</path>
		</sound>
		<systems>
			<electrical>
				<path/>
			</electrical>
		</systems>
		<menubar>
			<default>
				<menu n="100">
					<label>ASK13 Passenger</label>
					<item>
						<label>Select MP-Pilot</label>
						<binding>
							<command>nasal</command>
							<script>
								dual_control_tools.
								copilot_dialog.show(aircraft_dual_control.pilot_type);
							</script>
						</binding>
					</item>
				</menu>
			</default>
		</menubar>
	</sim>
	<nasal>
		<dual_control_tools>
			<file>Aircraft/Generic/DualControl/dual-control-tools.nas</file>
		</dual_control_tools>
		<aircraft_dual_control>
			<file>Aircraft/ASK13/Nasal/ask13-dual-control.nas</file>
		</aircraft_dual_control>
		<dual_control>
			<file>Aircraft/Generic/DualControl/copilot-dual-control.nas</file>
		</dual_control>
	</nasal>
</PropertyList>
