<?xml version="1.0"?>

<PropertyList>
  <!-- =============================================================== -->
  <!--                        PFD display preprocessors                -->
  <!-- =============================================================== -->

	<filter>
    	<name>Altitude cursor icon positioning</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
      <gain>1.0</gain>
      <input>
        <property>autopilot/settings/actual-target-altitude-ft</property>
      </input>
      <reference>
		<property>instrumentation/altimeter/indicated-altitude-ft</property>
      </reference>
      <output>instrumentation/pfd/target-altitude-diff</output>
      <min>-430</min>
      <max>430</max>
  </filter>

	<filter>
		<name>Landing runway reference</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>autopilot/route-manager/landing-rwy-elevation</property>
		</input>
		<reference>
			<property>instrumentation/altimeter/indicated-altitude-ft</property>
		</reference>
		<output>instrumentation/pfd/runway-elevation-diff</output>
		<min>-1500</min>
		<max>512</max>
	</filter>

	<filter>
		<name>Baro altitude Minimum</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>instrumentation/efis/minimums-baro</property>
		</input>
		<reference>
			<property>instrumentation/altimeter/indicated-altitude-ft</property>
		</reference>
		<output>instrumentation/pfd/minimum-diff</output>
		<min>-480</min>
		<max>512</max>
	</filter>

	<filter>
    	<name>Target Speed icon positioning</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>instrumentation/airspeed-indicator/indicated-speed-kt</property>
      </reference>
      <output>instrumentation/pfd/target-speed-diff</output>
      <min>-60</min>
      <max>60</max>
  </filter>

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

  <filter>
      <name>Over speed margin computer</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
      <gain>-1.0</gain>
      <input>
          <property>instrumentation/afds/max-airspeed-kts</property>
      </input>
      <reference>
          <property>velocities/airspeed-kt</property>
          <offset>-65</offset>
      </reference>
      <output>instrumentation/pfd/overspeed-diff</output>
      <min>-200</min>
      <max>-10</max>
  </filter>

 	<filter>
    	<name>VREF marker positioning</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
      <gain>1.0</gain>
      <input>
        <property>instrumentation/weu/state/vref</property>
      </input>
      <reference>
		<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
      </reference>
      <output>instrumentation/pfd/vref-diff</output>
      <min>-62</min>
      <max>60</max>
  </filter>

 	<filter>
    	<name>VREF text positioning</name> 
      <type>gain</type>
      <update-interval-secs type="double">0.05</update-interval-secs>
      <gain>1.0</gain>
      <input>
        <property>instrumentation/weu/state/vref</property>
      </input>
      <reference>
		<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
      </reference>
      <output>instrumentation/pfd/vref-text-diff</output>
      <min>-55</min>
      <max>63</max>
  </filter>

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

	<filter>
    	<name>VR marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>instrumentation/weu/state/vr</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/vr-diff</output>
		<min>-64</min>
		<max>60</max>
	</filter>

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

	<filter>
    	<name>Flap UP marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>instrumentation/weu/state/flap</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/flap-diff</output>
		<min>-64</min>
		<max>60</max>
	</filter>

	<filter>
    	<name>Flap 1 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>instrumentation/weu/state/fl1</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/fl1-diff</output>
		<min>-64</min>
		<max>60</max>
	</filter>

	<filter>
    	<name>Flap 5 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>instrumentation/weu/state/fl5</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/fl5-diff</output>
		<min>-64</min>
		<max>60</max>
	</filter>

	<filter>
    	<name>Flap 15 marker positioning</name> 
		<type>gain</type>
		<update-interval-secs type="double">0.05</update-interval-secs>
		<gain>1.0</gain>
		<input>
			<property>instrumentation/weu/state/fl15</property>
		</input>
		<reference>
			<property>instrumentation/airspeed-indicator/indicated-speed-kt</property>
		</reference>
		<output>instrumentation/pfd/fl15-diff</output>
		<min>-64</min>
		<max>60</max>
	</filter>

<!-- =============================================================== -->
  <!--                 speed trend vector processing                   -->
  <!-- =============================================================== -->

  <predict-simple>
    <name>speed predictor (smoothed)</name>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>velocities/airspeed-kt</input>
    <output>instrumentation/pfd/speed-lookahead</output>
    <seconds>10.0</seconds>
    <filter-gain>0.05</filter-gain>
  </predict-simple>

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

  <filter>
    <name>PFD preprocessor (spd trend down)</name>
    <type>gain</type>
    <update-interval-secs type="double">0.1</update-interval-secs>
    <input>
      <property>instrumentation/pfd/speed-lookahead</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>-0.24</min>
    <max>0</max>
  </filter>

</PropertyList>
