<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

<!-- ALTITUDE PREDICTOR -->

  <predict-simple>
    <name>altitude predictor</name>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>instrumentation/altimeter/indicated-altitude-ft</input>
    <output>instrumentation/pfd/alt-lookahead-6s</output>
    <seconds>6.0</seconds>
    <filter-gain>0.05</filter-gain>
  </predict-simple>

  <filter>
    <name>ALT preprocessor (alt trend up)</name>
    <type>gain</type>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>
      <property>instrumentation/pfd/alt-lookahead-6s</property>
    </input>
    <reference>
      <property>instrumentation/altimeter/indicated-altitude-ft</property>
      <offset>500</offset>
    </reference>
    <gain>-0.000480</gain>
    <output>instrumentation/pfd/alt-trend-up</output>
    <max>0.24</max>
    <min>0</min>
  </filter>

  <filter>
    <name>ALT preprocessor (alt trend down)</name>
    <type>gain</type>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>
      <property>instrumentation/pfd/alt-lookahead-6s</property>
      <min>0</min>
    </input>
    <reference>
      <property>instrumentation/altimeter/indicated-altitude-ft</property>
      <offset>-500</offset>
    </reference>
    <gain>-0.000480</gain>
    <output>instrumentation/pfd/alt-trend-down</output>
    <min>-0.24</min>
    <max>0</max>
  </filter>


<!-- ALTITUDE CURSOR -->

	<filter>
    	<name>Altitude cursor</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
      <gain>1.0</gain>
      <input>
				<condition>
					<not-equals>
						<property>autopilot/locks/altitude</property>
						<value>VALT</value>
					</not-equals>
				</condition>
	      <property>autopilot/settings/asel</property>
				<scale>100</scale>
      </input>
      <input>
				<condition>
					<equals>
						<property>autopilot/locks/altitude</property>
						<value>VALT</value>
					</equals>
				</condition>
	      <property>autopilot/settings/target-altitude-ft</property>
      </input>
      <reference>
				<property>instrumentation/altimeter/indicated-altitude-ft</property>
      </reference>
      <output>instrumentation/pfd/target-altitude-diff</output>
      <min>-800</min>
      <max>800</max>
  </filter>

<!-- MINIMUMS -->

	<filter>
		<name>Baro altitude Minimum</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<condition>
				<equals>
					<property>autopilot/settings/minimums-mode</property>
					<value>BA</value>
				</equals>
			</condition>
			<property>instrumentation/pfd/minimums-baro</property>
		</input>
		<input>
			<condition>
				<equals>
					<property>autopilot/settings/minimums-mode</property>
					<value>RA</value>
				</equals>
			</condition>
					<property>instrumentation/pfd/minimums-radio</property>
		</input>
		<reference>
			<condition>
				<equals>
					<property>autopilot/settings/minimums-mode</property>
					<value>BA</value>
				</equals>
			</condition>
			<property>instrumentation/altimeter/indicated-altitude-ft</property>
		</reference>
		<reference>
			<condition>
				<equals>
					<property>autopilot/settings/minimums-mode</property>
					<value>RA</value>
				</equals>
			</condition>
			<property>position/altitude-agl-ft</property>
		</reference>
		<output>instrumentation/pfd/minimum-diff</output>
		<min>-610</min>
		<max>610</max>
	</filter>

<!-- SPEED CURSOR -->

	<filter>
    	<name>Speed cursor</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
      <gain>1.0</gain>
      <input>
		    <property>autopilot/settings/target-speed-kt</property>
      </input>
      <reference>
			<property>velocities/airspeed-kt</property>
      </reference>
      <output>instrumentation/pfd/target-speed-diff</output>
      <min>-100</min>
      <max>100</max>
  </filter>

<!-- SPEED PREDICTOR -->

  <filter>
    <name>PFD preprocessor (spd trend up)</name>
    <type>gain</type>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>
			<property>autopilot/internal/lookahead-10-sec-airspeed-kt</property>
    </input>
    <reference>
      <property>velocities/airspeed-kt</property>
      <offset>90</offset> 
    </reference>
    <gain>0.002667</gain>
    <output>instrumentation/pfd/speed-trend-up</output>
    <min>0</min>
    <max>1</max>
  </filter>

  <filter>
    <name>PFD preprocessor (spd trend down)</name>
    <type>gain</type>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>
      <property>autopilot/internal/lookahead-10-sec-airspeed-kt</property>
      <min>0</min>
    </input>
    <reference>
      <property>velocities/airspeed-kt</property>
     <offset>-90</offset> 
    </reference>
    <gain>-0.002667</gain>
    <output>instrumentation/pfd/speed-trend-down</output>
    <min>-1</min>
    <max>0</max>
  </filter>

<!-- V1 marker -->

	<filter>
    	<name>V1 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/v1</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/v1-diff</output>
		<min>0</min>
		<max>60</max>
	</filter>

<!-- Vr marker -->

	<filter>
    	<name>Vr marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/vr</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/vr-diff</output>
		<min>0</min>
		<max>60</max>
	</filter>

<!-- V2 marker -->

	<filter>
    	<name>V2 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/v2</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/v2-diff</output>
		<min>0</min>
		<max>60</max>
	</filter>

<!-- Ve marker -->

	<filter>
    <name>Ve marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/ve</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/ve-diff</output>
		<min>0</min>
		<max>60</max>
	</filter>

<!-- Va marker -->

	<filter>
    <name>Va marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/va</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/va-diff</output>
		<min>-60</min>
		<max>60</max>
	</filter>

<!-- Vf5 marker -->

	<filter>
    <name>V5 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/vf5</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/vf5-diff</output>
		<min>-60</min>
		<max>60</max>
	</filter>

<!-- Vf15 marker -->

	<filter>
    <name>V15 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/vf15</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/vf15-diff</output>
		<min>-60</min>
		<max>60</max>
	</filter>

<!-- Vf35 marker -->

	<filter>
    <name>V35 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/vf35</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/vf35-diff</output>
		<min>-60</min>
		<max>60</max>
	</filter>

<!-- Vref marker -->

	<filter>
    <name>Vref marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.1</gain>
		<input>
			<property>controls/flight/vref</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/vref-diff</output>
		<min>-60</min>
		<max>60</max>
	</filter>

<!-- VMO -->

  <filter>
      <name>IAS speed limit</name>
      <type>gain</type>
      <gain>1.0</gain>
      <input>
          <condition>
              <greater-than>
                  <property>controls/flight/flaps</property>
                  <value>0.0</value>
              </greater-than>
          </condition>
          <expression>
              <table>
                  <property>controls/flight/flaps</property> 
                  <entry><ind>0.0428</ind><dep>250</dep></entry>
                  <entry><ind>0.142</ind><dep>250</dep></entry>
                  <entry><ind>0.428</ind><dep>210</dep></entry>
                  <entry><ind>1.0</ind><dep>180</dep></entry>
              </table>
          </expression>
      </input>
      <input>
          <condition>
              <greater-than>
                  <property>gear/gear/position-norm</property>
                  <value>0.0</value>
              </greater-than>
          </condition>
          <value>210</value>
      </input>
      <input> 
          <expression>
              <table>
                  <property>instrumentation/altimeter/indicated-altitude-ft</property> 
                  <entry><ind>0</ind><dep>270</dep></entry>
                  <entry><ind>6000</ind><dep>270</dep></entry>
                  <entry><ind>7800</ind><dep>350</dep></entry>
									<entry><ind>30650</ind><dep>350</dep></entry>
                  <entry><ind>41000</ind><dep>277</dep></entry>
                  <entry><ind>51000</ind><dep>220</dep></entry>
              </table>
          </expression>
      </input>    
      <output>instrumentation/pfd/max-airspeed-kts</output>
	</filter>

  <filter>
      <name>Vmo tape</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
			<gain>-1</gain> 
     <input>
          <property>instrumentation/pfd/max-airspeed-kts</property>
      </input>
      <reference>
          <property>velocities/airspeed-kt</property>
          <offset>-60</offset>
      </reference>
      <output>instrumentation/pfd/vmo-diff</output>
      <min>-140</min>
      <max>-10</max>
  </filter>

<!-- Stall -->

  <filter>
      <name>Stall speed</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
			<gain>1.0</gain> 
     <input>
          <property>instrumentation/pfd/stall-speed</property>
      </input>
      <reference>
          <property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
					<offset>70</offset>
      </reference>
      <output>instrumentation/pfd/stall-diff</output>
      <min>-205</min>
      <max>10</max>
  </filter>

  
  <!--Altitude indication-->
  <filter>
      <name>Altitude Bug 1000</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
			     <div>
				<property>instrumentation/PFD/altitude-bug</property>
				<value>1000</value>
			</div>
		</floor>
	</expression>
      </input>
      <output>instrumentation/PFD/altitude-bug-1000</output>
  </filter>
  
  <filter>
      <name>Altitude 10000</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
			     <div>
				<property>instrumentation/altimeter/indicated-altitude-ft</property>
				<value>10000</value>
			</div>
		</floor>
	</expression>
      </input>
      <output>instrumentation/PFD/alt-10000</output>
  </filter>
  <filter>
      <name>Altitude 1000</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
			     <div>
				<property>instrumentation/altimeter/indicated-altitude-ft</property>
				<value>1000</value>
			</div>
		</floor>
	</expression>
      </input>
      <output>instrumentation/PFD/alt-1000</output>
  </filter>
  <filter>
      <name>Altitude 100</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
			     <div>
				<property>instrumentation/altimeter/indicated-altitude-ft</property>
				<value>100</value>
			</div>
		</floor>
	</expression>
      </input>
      <output>instrumentation/PFD/alt-100</output>
  </filter>
  <filter>
      <name>Altitude 1</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
				<property>instrumentation/altimeter/indicated-altitude-ft</property>
		</floor>
	</expression>
      </input>
      <output>instrumentation/PFD/alt-1</output>
  </filter>
  
  
  <filter>
      <name>Airspeed 10</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
			     <div>
				<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
				<value>10</value>
			     </div>
		</floor>
	</expression>
      </input>
      <output>instrumentation/pfd/asi-10</output>
  </filter>
  
  <filter>
      <name>Airspeed 100</name> 
      <type>gain</type>
			<gain>1.0</gain> 
     <input>
	     <expression>
		     <floor>
			     <div>
				<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
				<value>100</value>
			     </div>
		</floor>
	</expression>
      </input>
      <output>instrumentation/pfd/asi-100</output>
  </filter>
  
  <filter>
      <name>VSneedle</name>
      <type>gain</type>
      <gain>1.0</gain>
      <input>
          <expression>
              <table>
		      <prod>
			<property>/velocities/vertical-speed-fps</property> 
			<value>60</value>
			</prod>
                  <entry><ind>-4000</ind><dep>-56.36</dep></entry>
                  <entry><ind>-2000</ind><dep>-49.31</dep></entry>
                  <entry><ind>-1000</ind><dep>-40.09</dep></entry>
                  <entry><ind>0</ind><dep>0</dep></entry>
                  <entry><ind>1000</ind><dep>40.09</dep></entry>
                  <entry><ind>2000</ind><dep>49.31</dep></entry>
                  <entry><ind>4000</ind><dep>56.36</dep></entry>
              </table>
          </expression>
      </input>
      <output>instrumentation/pfd/vs-needle</output>
</filter>
  
  <filter>
      <name>HDGBUGDiff</name>
      <type>gain</type>
      <gain>1.0</gain>
      <input>
          <expression>
		<dif>
			<property>/orientation/heading-deg</property> 
			<property>/it-autoflight/input/hdg</property> 
		</dif>
          </expression>
      </input>
      <output>instrumentation/pfd/hdg-bug-diff</output>
</filter>
  <filter>
      <name>ALTBUGDiff</name>
      <type>gain</type>
      <gain>1.0</gain>
      <input>
          <expression>
		<dif>
			<property>/it-autoflight/input/alt</property> 
			<property>/instrumentation/altimeter/indicated-altitude-ft</property> 
		</dif>
          </expression>
      </input>
      <output>instrumentation/pfd/alt-bug-diff</output>
</filter>
  <filter>
      <name>SPEEDBUGDiff1</name>
      <type>gain</type>
      <gain>1.0</gain>
      <input>
          <expression>
		<dif>
			<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property> 
			<property>/instrumentation/PFD/ias-bugs/bug1</property> 
		</dif>
          </expression>
      </input>
	<min>-42</min>
	<max>42</max>
      <output>instrumentation/pfd/ias-bug1-diff</output>
</filter>
  <filter>
      <name>SPEEDBUGDiff2</name>
      <type>gain</type>
      <gain>1.0</gain>
      <input>
          <expression>
		<dif>
			<property>/instrumentation/airspeed-indicator/indicated-speed-kt</property> 
			<property>/instrumentation/PFD/ias-bugs/bug2</property> 
		</dif>
          </expression>
      </input>
	<min>-42</min>
	<max>42</max>
      <output>instrumentation/pfd/ias-bug2-diff</output>
</filter>
</PropertyList>
