2020-06-03 15:14:50 +00:00
<?xml version="1.0"?>
2019-11-02 14:52:06 +00:00
2020-06-03 15:14:50 +00:00
<!-- Airbus A320 ADR -->
2019-11-02 14:52:06 +00:00
<!-- Copyright (c) 2019 Jonathan Redpath -->
<system name= "A320: ADR" >
2020-07-19 13:01:13 +00:00
<channel name= "ADR Inputs" execrate= "2" >
2019-11-04 19:20:56 +00:00
<fcs_function name= "aero/alpha-deg-corrected" >
<function >
<product >
<property > aero/alpha-deg</property>
<table >
2021-09-25 19:23:41 +00:00
<independentVar lookup= "row" > /velocities/airspeed-kt</independentVar>
2019-11-04 19:20:56 +00:00
<tableData >
2021-09-25 19:23:41 +00:00
0.00 0.0
59.99 0.0
60.00 1.0
2019-11-04 19:20:56 +00:00
</tableData>
</table>
</product>
</function>
</fcs_function>
<sensor name= "/systems/navigation/probes/aoa-1" >
2020-06-05 21:48:53 +00:00
<input > aero/alpha-deg-norm</input>
2019-11-04 19:20:56 +00:00
<quantization name= "/systems/navigation/adr/output/aoa-1" >
<bits > 12</bits>
<min > -180</min>
<max > 180</max>
</quantization>
</sensor>
<sensor name= "/systems/navigation/probes/aoa-2" >
2020-06-05 21:48:53 +00:00
<input > aero/alpha-deg-norm</input>
2019-11-04 19:20:56 +00:00
<quantization name= "/systems/navigation/adr/output/aoa-2" >
<bits > 12</bits>
<min > -180</min>
<max > 180</max>
</quantization>
</sensor>
<sensor name= "/systems/navigation/probes/aoa-3" >
2020-06-05 21:48:53 +00:00
<input > aero/alpha-deg-norm</input>
2019-11-04 19:20:56 +00:00
<quantization name= "/systems/navigation/adr/output/aoa-3" >
<bits > 12</bits>
<min > -180</min>
<max > 180</max>
</quantization>
</sensor>
2019-11-02 14:52:06 +00:00
<sensor name= "/systems/navigation/probes/pitot-1" >
<input > /systems/pitot[0]/measured-total-pressure-inhg</input>
2021-09-25 19:23:41 +00:00
<quantization name= "/systems/navigation/probes/pitot-1" >
<bits > 18</bits>
<min > 2.953</min>
<max > 41.34</max>
</quantization>
2019-11-02 14:52:06 +00:00
</sensor>
<sensor name= "/systems/navigation/probes/pitot-2" >
<input > /systems/pitot[1]/measured-total-pressure-inhg</input>
2021-09-25 19:23:41 +00:00
<quantization name= "/systems/navigation/probes/pitot-2" >
<bits > 18</bits>
<min > 2.953</min>
<max > 41.34</max>
</quantization>
2019-11-02 14:52:06 +00:00
</sensor>
<sensor name= "/systems/navigation/probes/pitot-3" >
<input > /systems/pitot[2]/measured-total-pressure-inhg</input>
2021-09-25 19:23:41 +00:00
<quantization name= "/systems/navigation/probes/pitot-3" >
<bits > 18</bits>
<min > 2.953</min>
<max > 41.34</max>
</quantization>
2019-11-02 14:52:06 +00:00
</sensor>
<sensor name= "/systems/navigation/probes/static-1" >
<input > /systems/static[0]/pressure-inhg</input>
2021-09-25 19:23:41 +00:00
<quantization name= "/systems/navigation/probes/static-1" >
<bits > 18</bits>
<min > 2.953</min>
<max > 32.48</max>
</quantization>
2019-11-02 14:52:06 +00:00
</sensor>
<sensor name= "/systems/navigation/probes/static-2" >
<input > /systems/static[1]/pressure-inhg</input>
2021-09-25 19:23:41 +00:00
<quantization name= "/systems/navigation/probes/static-2" >
<bits > 18</bits>
<min > 2.953</min>
<max > 32.48</max>
</quantization>
2019-11-02 14:52:06 +00:00
</sensor>
<sensor name= "/systems/navigation/probes/static-3" >
<input > /systems/static[2]/pressure-inhg</input>
2021-09-25 19:23:41 +00:00
<quantization name= "/systems/navigation/probes/static-3" >
<bits > 18</bits>
<min > 2.953</min>
<max > 32.48</max>
</quantization>
2019-11-02 14:52:06 +00:00
</sensor>
<fcs_function name= "/systems/navigation/probes/tat-1/compute-tat" >
<function >
2020-09-08 16:50:07 +00:00
<product >
2021-09-25 19:23:41 +00:00
<value > 0.995</value>
2020-09-08 16:50:07 +00:00
<property > propulsion/tat-c</property>
</product>
2019-11-02 14:52:06 +00:00
</function>
</fcs_function>
<fcs_function name= "/systems/navigation/probes/tat-2/compute-tat" >
<function >
2020-09-08 16:50:07 +00:00
<product >
2021-09-25 19:23:41 +00:00
<value > 0.996</value>
2020-09-08 16:50:07 +00:00
<property > propulsion/tat-c</property>
</product>
2019-11-02 14:52:06 +00:00
</function>
</fcs_function>
<sensor name= "/systems/navigation/probes/tat-1/tat" >
<input > /systems/navigation/probes/tat-1/compute-tat</input>
<quantization name= "/systems/navigation/adr/output/tat-1" >
<bits > 11</bits>
2021-09-25 19:23:41 +00:00
<min > -60</min>
<max > 99</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/probes/tat-2/tat" >
<input > /systems/navigation/probes/tat-2/compute-tat</input>
<quantization name= "/systems/navigation/adr/output/tat-2" >
<bits > 11</bits>
2021-09-25 19:23:41 +00:00
<min > -60</min>
<max > 99</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
</channel>
2020-07-19 13:01:13 +00:00
<channel name= "ADR Computation" execrate= "2" >
2019-11-02 14:52:06 +00:00
<sensor name= "/systems/navigation/adr/computation/baro-alt-1-capt" >
<input > /instrumentation/altimeter[0]/pressure-alt-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-1-capt" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-2-capt" >
<input > /instrumentation/altimeter[1]/pressure-alt-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-2-capt" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-3-capt" >
<input > /instrumentation/altimeter[2]/pressure-alt-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-3-capt" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-1-fo" >
<input > /instrumentation/altimeter[3]/pressure-alt-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-1-fo" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-2-fo" >
<input > /instrumentation/altimeter[4]/pressure-alt-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-2-fo" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-3-fo" >
<input > /instrumentation/altimeter[5]/pressure-alt-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-3-fo" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-corrected-1-capt" >
<input > /instrumentation/altimeter[0]/indicated-altitude-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-corrected-1-capt" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-corrected-2-capt" >
<input > /instrumentation/altimeter[1]/indicated-altitude-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-corrected-2-capt" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-corrected-3-capt" >
<input > /instrumentation/altimeter[2]/indicated-altitude-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-corrected-3-capt" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-corrected-1-fo" >
<input > /instrumentation/altimeter[3]/indicated-altitude-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-corrected-1-fo" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-corrected-2-fo" >
<input > /instrumentation/altimeter[4]/indicated-altitude-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-corrected-2-fo" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/baro-alt-corrected-3-fo" >
<input > /instrumentation/altimeter[5]/indicated-altitude-ft</input>
<quantization name= "/systems/navigation/adr/output/baro-alt-corrected-3-fo" >
<bits > 17</bits>
2021-09-25 19:23:41 +00:00
<min > -2000</min>
<max > 50000</max> >
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
2019-11-04 19:20:56 +00:00
<fcs_function name= "/systems/navigation/adr/computation/cas-1-product" >
<function >
<product >
<value > 5</value>
<difference >
<pow >
<sum >
<quotient >
<difference >
<property > /systems/navigation/probes/pitot-1</property> <!-- impact pressure -->
<property > /systems/navigation/probes/static-1</property>
</difference>
<value > 29.9212553</value> <!-- use standard outside pressure -->
</quotient>
<value > 1</value>
</sum>
<quotient >
<value > 2</value>
<value > 7</value>
</quotient>
</pow>
<value > 1</value>
</difference>
</product>
</function>
<clipto >
<min > 0</min>
<max > 9999999999999999</max>
</clipto>
</fcs_function>
2019-11-02 14:52:06 +00:00
<fcs_function name= "/systems/navigation/adr/computation/cas-1-compute" > <!-- same as mach but with sea level pressure and multiplied by speed of sound at sea level -->
<function >
<product >
2021-09-25 19:23:41 +00:00
<value > 661.4746</value>
2019-11-02 14:52:06 +00:00
<pow >
2019-11-04 19:20:56 +00:00
<property > /systems/navigation/adr/computation/cas-1-product</property>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</product>
</function>
</fcs_function>
2019-11-04 19:20:56 +00:00
<fcs_function name= "/systems/navigation/adr/computation/cas-2-product" >
<function >
<product >
<value > 5</value>
<difference >
<pow >
<sum >
<quotient >
<difference >
<property > /systems/navigation/probes/pitot-2</property> <!-- impact pressure -->
<property > /systems/navigation/probes/static-2</property>
</difference>
<value > 29.9212553</value> <!-- use standard outside pressure -->
</quotient>
<value > 1</value>
</sum>
<quotient >
<value > 2</value>
<value > 7</value>
</quotient>
</pow>
<value > 1</value>
</difference>
</product>
</function>
<clipto >
<min > 0</min>
<max > 9999999999999999</max>
</clipto>
</fcs_function>
2019-11-02 14:52:06 +00:00
<fcs_function name= "/systems/navigation/adr/computation/cas-2-compute" >
<function >
<product >
2021-09-25 19:23:41 +00:00
<value > 661.4746</value>
2019-11-02 14:52:06 +00:00
<pow >
2019-11-04 19:20:56 +00:00
<property > /systems/navigation/adr/computation/cas-2-product</property>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</product>
</function>
</fcs_function>
2019-11-04 19:20:56 +00:00
<fcs_function name= "/systems/navigation/adr/computation/cas-3-product" >
<function >
<product >
<value > 5</value>
<difference >
<pow >
<sum >
<quotient >
<difference >
<property > /systems/navigation/probes/pitot-3</property> <!-- impact pressure -->
<property > /systems/navigation/probes/static-3</property>
</difference>
<value > 29.9212553</value> <!-- use standard outside pressure -->
</quotient>
<value > 1</value>
</sum>
<quotient >
<value > 2</value>
<value > 7</value>
</quotient>
</pow>
<value > 1</value>
</difference>
</product>
</function>
<clipto >
<min > 0</min>
<max > 9999999999999999</max>
</clipto>
</fcs_function>
2019-11-02 14:52:06 +00:00
<fcs_function name= "/systems/navigation/adr/computation/cas-3-compute" >
<function >
<product >
2021-09-25 19:23:41 +00:00
<value > 661.4746</value>
2019-11-02 14:52:06 +00:00
<pow >
2019-11-04 19:20:56 +00:00
<property > /systems/navigation/adr/computation/cas-3-product</property>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</product>
</function>
</fcs_function>
<sensor name= "/systems/navigation/adr/computation/cas-1" >
<input > /systems/navigation/adr/computation/cas-1-compute</input>
<quantization name= "/systems/navigation/adr/computation/cas-1" >
<bits > 14</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 450</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/cas-2" >
<input > /systems/navigation/adr/computation/cas-2-compute</input>
<quantization name= "/systems/navigation/adr/computation/cas-2" >
<bits > 14</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 450</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/cas-3" >
<input > /systems/navigation/adr/computation/cas-3-compute</input>
<quantization name= "/systems/navigation/adr/computation/cas-3" >
<bits > 14</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 450</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
2019-11-06 19:09:42 +00:00
<fcs_function name= "/systems/navigation/adr/computation/mach-1-product" >
2019-11-02 14:52:06 +00:00
<function >
2019-11-06 19:09:42 +00:00
<product >
<value > 5</value> <!-- 2 / specific heat ratio - 1 -->
<difference >
<pow >
<sum >
2019-11-02 14:52:06 +00:00
<quotient >
2019-11-06 19:09:42 +00:00
<difference >
<property > /systems/navigation/probes/pitot-1</property> <!-- dynamic pressure -->
<property > /systems/navigation/probes/static-1</property>
</difference>
<property > /systems/navigation/probes/static-1</property> <!-- static pressure -->
2019-11-02 14:52:06 +00:00
</quotient>
2019-11-06 19:09:42 +00:00
<value > 1</value>
</sum>
<quotient >
<value > 2</value>
<value > 7</value>
</quotient>
</pow>
<value > 1</value>
</difference>
</product>
</function>
<clipto >
<min > 0</min>
<max > 999999999999</max>
</clipto>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/mach-1-compute" >
<function >
<pow >
<property > /systems/navigation/adr/computation/mach-1-product</property>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</function>
</fcs_function>
2019-11-06 19:09:42 +00:00
<fcs_function name= "/systems/navigation/adr/computation/mach-2-product" >
2019-11-02 14:52:06 +00:00
<function >
2019-11-06 19:09:42 +00:00
<product >
<value > 5</value> <!-- 2 / specific heat ratio - 1 -->
<difference >
<pow >
<sum >
2019-11-02 14:52:06 +00:00
<quotient >
2019-11-06 19:09:42 +00:00
<difference >
<property > /systems/navigation/probes/pitot-2</property> <!-- dynamic pressure -->
<property > /systems/navigation/probes/static-2</property>
</difference>
<property > /systems/navigation/probes/static-2</property> <!-- static pressure -->
2019-11-02 14:52:06 +00:00
</quotient>
2019-11-06 19:09:42 +00:00
<value > 1</value>
</sum>
<quotient >
<value > 2</value>
<value > 7</value>
</quotient>
</pow>
<value > 1</value>
</difference>
</product>
</function>
<clipto >
<min > 0</min>
<max > 999999999999</max>
</clipto>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/mach-2-compute" >
<function >
<pow >
<property > /systems/navigation/adr/computation/mach-2-product</property>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</function>
</fcs_function>
2019-11-06 19:09:42 +00:00
<fcs_function name= "/systems/navigation/adr/computation/mach-3-product" >
2019-11-02 14:52:06 +00:00
<function >
2019-11-06 19:09:42 +00:00
<product >
<value > 5</value> <!-- 2 / specific heat ratio - 1 -->
<difference >
<pow >
<sum >
2019-11-02 14:52:06 +00:00
<quotient >
2019-11-06 19:09:42 +00:00
<difference >
<property > /systems/navigation/probes/pitot-3</property> <!-- dynamic pressure -->
<property > /systems/navigation/probes/static-3</property>
</difference>
<property > /systems/navigation/probes/static-3</property> <!-- static pressure -->
2019-11-02 14:52:06 +00:00
</quotient>
2019-11-06 19:09:42 +00:00
<value > 1</value>
</sum>
<quotient >
<value > 2</value>
<value > 7</value>
</quotient>
</pow>
<value > 1</value>
</difference>
</product>
</function>
<clipto >
<min > 0</min>
<max > 999999999999</max>
</clipto>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/mach-3-compute" >
<function >
<pow >
<property > /systems/navigation/adr/computation/mach-3-product</property>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</function>
</fcs_function>
<sensor name= "/systems/navigation/adr/computation/mach-1" >
<input > /systems/navigation/adr/computation/mach-1-compute</input>
<quantization name= "/systems/navigation/adr/computation/mach-1" >
<bits > 16</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 1.0</max> <!-- O_o -->
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/mach-2" >
<input > /systems/navigation/adr/computation/mach-2-compute</input>
<quantization name= "/systems/navigation/adr/computation/mach-2" >
<bits > 16</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 1.0</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/mach-3" >
<input > /systems/navigation/adr/computation/mach-3-compute</input>
<quantization name= "/systems/navigation/adr/computation/mach-3" >
<bits > 16</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 1.0</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/sat-1" >
<input > /environment/temperature-degc</input>
<quantization name= "/systems/navigation/adr/computation/sat-1" >
<bits > 11</bits>
2021-09-25 19:23:41 +00:00
<min > -99</min>
<max > 80</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/sat-2" >
<input > /environment/temperature-degc</input>
<quantization name= "/systems/navigation/adr/computation/sat-2" >
<bits > 11</bits>
2021-09-25 19:23:41 +00:00
<min > -99</min>
<max > 80</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<fcs_function name= "/systems/navigation/adr/computation/tas-1-compute" >
<function >
<product >
2021-09-25 19:23:41 +00:00
<value > 38.96695</value>
2019-11-02 14:52:06 +00:00
<property > /systems/navigation/adr/computation/mach-1</property>
<pow >
2021-09-25 19:23:41 +00:00
<sum >
<property > /systems/navigation/adr/computation/sat-1</property>
<value > 273.15</value>
</sum>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</product>
</function>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/tas-2-compute" >
<function >
<product >
2021-09-25 19:23:41 +00:00
<value > 38.96695</value>
2019-11-02 14:52:06 +00:00
<property > /systems/navigation/adr/computation/mach-2</property>
<pow >
2021-09-25 19:23:41 +00:00
<sum >
<property > /systems/navigation/adr/computation/sat-2</property>
<value > 273.15</value>
</sum>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</product>
</function>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/tas-3-compute" >
<function >
<product >
2021-09-25 19:23:41 +00:00
<value > 38.96695</value>
2019-11-02 14:52:06 +00:00
<property > /systems/navigation/adr/computation/mach-3</property>
<pow >
2021-09-25 19:23:41 +00:00
<sum >
<property > /systems/navigation/adr/computation/sat-1</property>
<value > 273.15</value>
</sum>
2019-11-02 14:52:06 +00:00
<value > 0.5</value>
</pow>
</product>
</function>
</fcs_function>
<sensor name= "/systems/navigation/adr/computation/tas-1" >
<input > /systems/navigation/adr/computation/tas-1-compute</input>
<quantization name= "/systems/navigation/adr/computation/tas-1" >
<bits > 15</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 599</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/tas-2" >
<input > /systems/navigation/adr/computation/tas-2-compute</input>
<quantization name= "/systems/navigation/adr/computation/tas-2" >
<bits > 15</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 599</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<sensor name= "/systems/navigation/adr/computation/tas-3" >
<input > /systems/navigation/adr/computation/tas-3-compute</input>
<quantization name= "/systems/navigation/adr/computation/tas-3" >
<bits > 15</bits>
<min > 0</min>
2021-09-25 19:23:41 +00:00
<max > 599</max>
2019-11-02 14:52:06 +00:00
</quantization>
</sensor>
<fcs_function name= "/systems/navigation/adr/computation/overspeed-vmo" >
<function >
<ifthen >
<gt >
<max >
<property > /systems/navigation/adr/output/cas-1</property>
<property > /systems/navigation/adr/output/cas-2</property>
<property > /systems/navigation/adr/output/cas-3</property>
</max>
<value > 354</value>
</gt>
<value > 1</value>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/overspeed-mmo" >
<function >
<ifthen >
<gt >
<max >
<property > /systems/navigation/adr/output/mach-1</property>
<property > /systems/navigation/adr/output/mach-2</property>
<property > /systems/navigation/adr/output/mach-3</property>
</max>
<value > 0.826</value>
</gt>
<value > 1</value>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<switch name= "/systems/navigation/adr/computation/overspeed-vle" >
<default value= "0" />
<test logic= "AND" value= "1" >
/systems/navigation/adr/computation/overspeed-vle-speed eq 1
<test logic= "OR" >
/ECAM/Lower/door-left ne 0
/ECAM/Lower/door-right ne 0
/ECAM/Lower/door-nose-left ne 0
/ECAM/Lower/door-nose-right ne 0
/gear/gear[0]/position-norm ne 0
/gear/gear[1]/position-norm ne 0
/gear/gear[2]/position-norm ne 0
</test>
</test>
</switch>
<fcs_function name= "/systems/navigation/adr/computation/overspeed-vle-speed" >
<function >
<ifthen >
<gt >
<max >
<property > /systems/navigation/adr/output/cas-1</property>
<property > /systems/navigation/adr/output/cas-2</property>
<property > /systems/navigation/adr/output/cas-3</property>
</max>
<value > 284</value>
</gt>
<value > 1</value>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
<fcs_function name= "/systems/navigation/adr/computation/overspeed-vfe" >
<function >
<ifthen >
<gt >
<max >
<property > /systems/navigation/adr/output/cas-1</property>
<property > /systems/navigation/adr/output/cas-2</property>
<property > /systems/navigation/adr/output/cas-3</property>
</max>
<property > /systems/navigation/adr/computation/overspeed-vfe-spd</property>
</gt>
<value > 1</value>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
2019-11-04 19:20:56 +00:00
<fcs_function name= "/systems/navigation/adr/computation/overspeed" >
<function >
<max >
<property > /systems/navigation/adr/computation/overspeed-vmo</property>
<property > /systems/navigation/adr/computation/overspeed-mmo</property>
<property > /systems/navigation/adr/computation/overspeed-vle</property>
<property > /systems/navigation/adr/computation/overspeed-vfe</property>
</max>
</function>
</fcs_function>
2021-06-19 13:25:21 +00:00
<switch name= "/systems/navigation/adr/computation/underspeed-difference" >
<default value= "2" />
<test logic= "OR" value= "19" >
/controls/flight/speedbrake eq 1.0
</test>
</switch>
<fcs_function name= "/systems/navigation/adr/computation/underspeed" >
<function >
<ifthen >
<lt >
<max >
<property > /systems/navigation/adr/output/cas-1</property>
<property > /systems/navigation/adr/output/cas-2</property>
<property > /systems/navigation/adr/output/cas-3</property>
</max>
<difference >
<property > /FMGC/internal/vls-min</property>
<property > /systems/navigation/adr/computation/underspeed-difference</property>
</difference>
</lt>
<value > 1</value>
<value > 0</value>
</ifthen>
</function>
</fcs_function>
2019-11-02 14:52:06 +00:00
</channel>
2020-07-19 13:01:13 +00:00
<channel name= "ADR Output" execrate= "2" > <!-- todo - need lowpass? -->
2019-11-02 14:52:06 +00:00
2021-09-25 13:08:32 +00:00
<!-- Copy Altimeter Settings -->
<pure_gain name= "/instrumentation/altimeter[1]/setting-inhg" >
<input > /instrumentation/altimeter[0]/setting-inhg</input>
<gain > 1</gain>
</pure_gain>
<pure_gain name= "/instrumentation/altimeter[2]/setting-inhg" >
<input > /instrumentation/altimeter[0]/setting-inhg</input>
<gain > 1</gain>
</pure_gain>
<pure_gain name= "/instrumentation/altimeter[3]/setting-inhg" >
<input > /instrumentation/altimeter[0]/setting-inhg</input>
<gain > 1</gain>
</pure_gain>
<pure_gain name= "/instrumentation/altimeter[4]/setting-inhg" >
<input > /instrumentation/altimeter[0]/setting-inhg</input>
<gain > 1</gain>
</pure_gain>
<pure_gain name= "/instrumentation/altimeter[5]/setting-inhg" >
<input > /instrumentation/altimeter[0]/setting-inhg</input>
<gain > 1</gain>
</pure_gain>
2019-11-02 14:52:06 +00:00
<pure_gain name= "/systems/navigation/adr/output/aoa-1" >
<input > /systems/navigation/probes/aoa-1</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/aoa-2" >
<input > /systems/navigation/probes/aoa-2</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/aoa-3" >
<input > /systems/navigation/probes/aoa-3</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-1-capt" >
<input > /systems/navigation/adr/computation/baro-alt-1-capt</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-2-capt" >
<input > /systems/navigation/adr/computation/baro-alt-2-capt</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-3-capt" >
<input > /systems/navigation/adr/computation/baro-alt-3-capt</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-1-fo" >
<input > /systems/navigation/adr/computation/baro-alt-1-fo</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
2020-04-21 13:24:19 +00:00
<pure_gain name= "/systems/navigation/adr/output/baro-alt-2-fo" >
2019-11-02 14:52:06 +00:00
<input > /systems/navigation/adr/computation/baro-alt-2-fo</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-3-fo" >
<input > /systems/navigation/adr/computation/baro-alt-3-fo</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
2019-11-02 16:20:08 +00:00
<pure_gain name= "/systems/navigation/adr/output/baro-alt-corrected-1-capt" >
<input > /systems/navigation/adr/computation/baro-alt-corrected-1-capt</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 16:20:08 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-corrected-2-capt" >
<input > /systems/navigation/adr/computation/baro-alt-corrected-2-capt</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 16:20:08 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-corrected-3-capt" >
<input > /systems/navigation/adr/computation/baro-alt-corrected-3-capt</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 16:20:08 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-corrected-1-fo" >
<input > /systems/navigation/adr/computation/baro-alt-corrected-1-fo</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 16:20:08 +00:00
</pure_gain>
2019-11-08 19:19:46 +00:00
<pure_gain name= "/systems/navigation/adr/output/baro-alt-corrected-2-fo" >
2019-11-02 16:20:08 +00:00
<input > /systems/navigation/adr/computation/baro-alt-corrected-2-fo</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 16:20:08 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/baro-alt-corrected-3-fo" >
<input > /systems/navigation/adr/computation/baro-alt-corrected-3-fo</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 16:20:08 +00:00
</pure_gain>
2019-11-02 14:52:06 +00:00
<pure_gain name= "/systems/navigation/adr/output/cas-1" >
<input > /systems/navigation/adr/computation/cas-1</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/cas-2" >
<input > /systems/navigation/adr/computation/cas-2</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/cas-3" >
<input > /systems/navigation/adr/computation/cas-3</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/mach-1" >
<input > /systems/navigation/adr/computation/mach-1</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/mach-2" >
<input > /systems/navigation/adr/computation/mach-2</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/mach-3" >
<input > /systems/navigation/adr/computation/mach-3</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/sat-1" >
<input > /systems/navigation/adr/computation/sat-1</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/sat-2" >
<input > /systems/navigation/adr/computation/sat-2</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
2019-11-30 13:39:53 +00:00
<pure_gain name= "/systems/navigation/adr/output/sat-3" >
<input > /systems/navigation/adr/computation/sat-1</input> <!-- ADIRU 3 sources from TAT 1 -->
<gain > /systems/navigation/adr/operating-3</gain>
</pure_gain>
2019-11-02 14:52:06 +00:00
<pure_gain name= "/systems/navigation/adr/output/tas-1" >
<input > /systems/navigation/adr/computation/tas-1</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/tas-2" >
<input > /systems/navigation/adr/computation/tas-2</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/tas-3" >
<input > /systems/navigation/adr/computation/tas-3</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-3</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/tat-1" >
<input > /systems/navigation/probes/tat-1/tat</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-1</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
<pure_gain name= "/systems/navigation/adr/output/tat-2" >
<input > /systems/navigation/probes/tat-2/tat</input>
2019-11-04 19:20:56 +00:00
<gain > /systems/navigation/adr/operating-2</gain>
2019-11-02 14:52:06 +00:00
</pure_gain>
2019-11-30 13:39:53 +00:00
<pure_gain name= "/systems/navigation/adr/output/tat-3" >
<input > /systems/navigation/probes/tat-1/tat</input> <!-- ADIRU 3 sources from TAT 1 -->
<gain > /systems/navigation/adr/operating-3</gain>
</pure_gain>
2019-11-04 19:20:56 +00:00
<fcs_function name= "/systems/navigation/adr/any-adr-on" >
2019-11-02 14:52:06 +00:00
<function >
<max >
2019-11-04 19:20:56 +00:00
<property > /systems/navigation/adr/operating-1</property>
<property > /systems/navigation/adr/operating-2</property>
<property > /systems/navigation/adr/operating-3</property>
2019-11-02 14:52:06 +00:00
</max>
</function>
</fcs_function>
2019-11-04 19:20:56 +00:00
<pure_gain name= "/systems/navigation/adr/output/overspeed" >
<input > /systems/navigation/adr/computation/overspeed</input>
<gain > /systems/navigation/adr/any-adr-on</gain>
</pure_gain>
2021-06-19 13:25:21 +00:00
<pure_gain name= "/systems/navigation/adr/output/underspeed" >
<input > /systems/navigation/adr/computation/underspeed</input>
<gain > /systems/navigation/adr/any-adr-on</gain>
</pure_gain>
2019-11-04 19:20:56 +00:00
<pure_gain name= "/instrumentation/radar-altimeter[0]/radar-altitude-ft-corrected" >
<input > /instrumentation/radar-altimeter[0]/radar-altitude-ft</input>
<gain > 1</gain>
<clipto >
<min > 0</min>
<max > 5000</max>
</clipto>
</pure_gain>
2021-02-27 12:32:55 +00:00
<pure_gain name= "/instrumentation/radar-altimeter[1]/radar-altitude-ft-corrected" >
2019-11-04 19:20:56 +00:00
<input > /instrumentation/radar-altimeter[1]/radar-altitude-ft</input>
<gain > 1</gain>
<clipto >
<min > 0</min>
<max > 5000</max>
</clipto>
</pure_gain>
2021-06-12 13:42:41 +00:00
2021-06-12 13:46:08 +00:00
<fcs_function name= "/instrumentation/radar-altimeter-difference-ft" >
2021-06-12 13:42:41 +00:00
<function >
<abs >
<difference >
<property > /instrumentation/radar-altimeter[0]/radar-altitude-ft-corrected</property>
<property > /instrumentation/radar-altimeter[1]/radar-altitude-ft-corrected</property>
</difference>
</abs>
</function>
</fcs_function>
2019-11-06 19:09:42 +00:00
2019-12-28 15:53:17 +00:00
<switch name= "/instrumentation/transponder/altimeter-input/mode-c-alt-ft" >
<test logic= "AND" value= "/instrumentation/altimeter[0]/mode-c-alt-ft" >
2019-11-06 19:09:42 +00:00
/instrumentation/transponder/altimeter-input-src eq 1
</test>
2019-12-28 15:53:17 +00:00
<test logic= "AND" value= "/instrumentation/altimeter[1]/mode-c-alt-ft" >
2019-11-06 19:09:42 +00:00
/instrumentation/transponder/altimeter-input-src eq 2
</test>
2019-12-28 15:53:17 +00:00
<test logic= "AND" value= "/instrumentation/altimeter[2]/mode-c-alt-ft" >
/instrumentation/transponder/altimeter-input-src eq 3
</test>
</switch>
<switch name= "/instrumentation/transponder/altimeter-input/mode-s-alt-ft" >
<test logic= "AND" value= "/instrumentation/altimeter[0]/mode-s-alt-ft" >
/instrumentation/transponder/altimeter-input-src eq 1
</test>
<test logic= "AND" value= "/instrumentation/altimeter[1]/mode-s-alt-ft" >
/instrumentation/transponder/altimeter-input-src eq 2
</test>
<test logic= "AND" value= "/instrumentation/altimeter[2]/mode-s-alt-ft" >
2019-11-06 19:09:42 +00:00
/instrumentation/transponder/altimeter-input-src eq 3
</test>
</switch>
<switch name= "/instrumentation/transponder/airspeed-input" >
<test logic= "AND" value= "/systems/navigation/adr/output/cas-1" >
/instrumentation/transponder/airspeed-input-src eq 1
</test>
<test logic= "AND" value= "/systems/navigation/adr/output/cas-2" >
/instrumentation/transponder/airspeed-input-src eq 2
</test>
<test logic= "AND" value= "/systems/navigation/adr/output/cas-3" >
/instrumentation/transponder/airspeed-input-src eq 3
</test>
</switch>
2019-11-30 13:39:53 +00:00
<switch name= "/it-autoflight/internal/current-mach-input" >
<test logic= "AND" value= "/systems/navigation/adr/output/mach-1" >
/FMGC/active-fmgc-channel eq 1
/systems/fmgc/cas-compare/cas-reject-1 eq 0
</test>
<test logic= "AND" value= "/systems/navigation/adr/output/mach-2" >
/FMGC/active-fmgc-channel eq 2
/systems/fmgc/cas-compare/cas-reject-2 eq 0
</test>
<test logic= "OR" value= "/systems/navigation/adr/output/mach-3" >
/systems/fmgc/cas-compare/cas-reject-1 eq 1
/systems/fmgc/cas-compare/cas-reject-2 eq 1
/systems/fmgc/cas-compare/cas-reject-3 eq 0
</test>
</switch>
<switch name= "/it-autoflight/internal/current-speed-input" >
<test logic= "AND" value= "/systems/navigation/adr/output/cas-1" >
/FMGC/active-fmgc-channel eq 1
/systems/fmgc/cas-compare/cas-reject-1 eq 0
</test>
<test logic= "AND" value= "/systems/navigation/adr/output/cas-2" >
/FMGC/active-fmgc-channel eq 2
/systems/fmgc/cas-compare/cas-reject-2 eq 0
</test>
<test logic= "OR" value= "/systems/navigation/adr/output/cas-3" >
/systems/fmgc/cas-compare/cas-reject-1 eq 1
/systems/fmgc/cas-compare/cas-reject-2 eq 1
/systems/fmgc/cas-compare/cas-reject-3 eq 0
</test>
</switch>
2019-11-02 14:52:06 +00:00
</channel>
</system>