1
0
Fork 0
A320-family/Systems/ecam-proprules.xml

443 lines
9.6 KiB
XML
Raw Normal View History

2019-11-19 18:04:01 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2020 Josh Davidson (Octal450) -->
2019-11-19 18:04:01 +00:00
<PropertyList>
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>0.1</value>
</time>
<S>
<property>/controls/electrical/switches/gen-1</property>
</S>
<output>/systems/electrical/some-electric-thingie/generator-1-pb</output>
</flipflop>
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>0.1</value>
</time>
<S>
<property>/controls/electrical/switches/gen-2</property>
</S>
<output>/systems/electrical/some-electric-thingie/generator-2-pb</output>
</flipflop>
2019-11-19 18:04:01 +00:00
<flipflop>
<type>RS</type>
<S>
<property>/systems/electrical/some-electric-thingie/emer-elec-config-generator-1-bustie</property>
</S>
<R>
<not>
<property>/systems/electrical/some-electric-thingie/emer-elec-config</property>
</not>
</R>
<output>/systems/electrical/some-electric-thingie/generator-1-reset-bustie</output>
</flipflop>
<flipflop>
<type>RS</type>
<S>
<property>/systems/electrical/some-electric-thingie/emer-elec-config-generator-2-bustie</property>
</S>
<R>
<not>
<property>/systems/electrical/some-electric-thingie/emer-elec-config</property>
</not>
</R>
<output>/systems/electrical/some-electric-thingie/generator-2-reset-bustie</output>
</flipflop>
<flipflop>
<type>RS</type>
<S>
<property>/systems/electrical/some-electric-thingie/emer-elec-config-generator-1</property>
</S>
<R>
<not>
<property>/systems/electrical/some-electric-thingie/emer-elec-config</property>
</not>
</R>
<output>/systems/electrical/some-electric-thingie/generator-1-reset</output>
</flipflop>
<flipflop>
<type>RS</type>
<S>
<property>/systems/electrical/some-electric-thingie/emer-elec-config-generator-2</property>
</S>
<R>
<not>
<property>/systems/electrical/some-electric-thingie/emer-elec-config</property>
</not>
</R>
<output>/systems/electrical/some-electric-thingie/generator-2-reset</output>
</flipflop>
<flipflop>
<type>RS</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/to-config-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/to-config-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/to-config-flipflop</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>RS</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/to-memo-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/to-memo-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/to-memo-flipflop</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>SR</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/ldg-memo-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/ldg-memo-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/ldg-memo-flipflop</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>RS</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/ldg-memo-2200-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/ldg-memo-2200-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/ldg-memo-2200-flipflop</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>SR</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/flipflop/gear-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/flipflop/gear-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/flipflop/gear-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>SR</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/flipflop/phase-2-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/flipflop/phase-2-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/flipflop/phase-2-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>RS</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/flipflop/phase-10-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/flipflop/phase-10-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/flipflop/phase-10-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>RS</type>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/flipflop/recall-set</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/flipflop/recall-reset</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/flipflop/recall-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>monostable</type>
<time>
<value>2.0</value>
</time>
<S>
<not>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/speed-gt-80</property>
2019-11-19 18:04:01 +00:00
</not>
</S>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/monostable-80kt</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>monostable</type>
<time>
<value>300.0</value>
</time>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/monostable/phase-1-300</property>
2019-11-19 18:04:01 +00:00
</S>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/monostable/phase-1-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>monostable</type>
<time>
<value>120.0</value>
</time>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/monostable/phase-5</property>
2019-11-19 18:04:01 +00:00
</S>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/monostable/phase-5-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>monostable</type>
<time>
<value>180.0</value>
</time>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/monostable/phase-7</property>
2019-11-19 18:04:01 +00:00
</S>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/monostable/phase-7-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>monostable</type>
<time>
<value>5.0</value>
</time>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/buttons/recall-status-normal</property>
2019-11-19 18:04:01 +00:00
</S>
<R>
2020-03-17 13:08:07 +00:00
<property>ECAM/buttons/clear-btn</property>
2019-11-19 18:04:01 +00:00
</R>
2020-03-17 13:08:07 +00:00
<output>ECAM/buttons/recall-status-normal-output</output>
</flipflop>
<flipflop>
<type>SR</type>
<S>
<property>ECAM/altitude-alert-monostable-set</property>
</S>
<R>
<property>ECAM/altitude-alert-monostable-intermediate-output</property>
</R>
<output>ECAM/altitude-alert-monostable-flipflop-intermediate</output>
</flipflop>
2020-03-17 13:08:07 +00:00
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
2020-03-17 13:08:07 +00:00
<time>
<value>1.5</value>
</time>
<S>
<not><property>ECAM/altitude-alert-monostable-flipflop-intermediate</property></not>
2020-03-17 13:08:07 +00:00
</S>
<output>ECAM/altitude-alert-monostable-intermediate-output</output>
2020-03-17 13:08:07 +00:00
</flipflop>
<filter>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<and>
<property>ECAM/altitude-alert-monostable-flipflop-intermediate</property>
<not><property>ECAM/altitude-alert-monostable-intermediate-output</property></not>
</and>
</condition>
<value>1</value>
</input>
<output>ECAM/altitude-alert-monostable-output</output>
</filter>
2020-03-17 13:08:07 +00:00
<filter>
<type>derivative</type>
<input>it-autoflight/input/alt</input>
<output>it-autoflight/input/alt-is-changing</output>
<filter-time>1.0</filter-time>
</filter>
<flipflop>
<type>monostable</type>
<time>
<value>1</value>
</time>
<S>
<property>it-autoflight/input/alt-is-changing</property>
</S>
<output>ECAM/alt-is-changing</output>
</flipflop>
<filter>
<input>
<condition>
<equals>
<property>gear/gear[0]/position-norm</property>
<value>1</value>
</equals>
</condition>
<value>1</value>
</input>
<input>
<condition>
<not-equals>
<property>gear/gear[0]/position-norm</property>
<value>1</value>
</not-equals>
</condition>
<value>0</value>
</input>
<output>ECAM/gear-downlocked-set</output>
</filter>
<flipflop>
<type>monostable</type>
<time>
<value>1</value>
</time>
<S>
<property>ECAM/gear-downlocked-set</property>
</S>
<output>ECAM/gear-downlocked-output</output>
</flipflop>
<filter>
<type>gain</type>
<gain>1.0</gain>
2020-03-17 13:08:07 +00:00
<input>
<condition>
<or>
<equals><property>ECAM/gear-downlocked-output</property><value>1</value></equals>
<equals><property>ECAM/alt-is-changing</property><value>1</value></equals>
2020-03-17 13:08:07 +00:00
</or>
</condition>
<value>1</value>
</input>
<input>
<condition>
<and>
<equals><property>ECAM/gear-downlocked-output</property><value>0</value></equals>
<equals><property>ECAM/alt-is-changing</property><value>0</value></equals>
2020-03-17 13:08:07 +00:00
</and>
</condition>
<value>0</value>
</input>
<output>ECAM/flipflop/alt-alert-rs-reset</output>
</filter>
<flipflop>
<type>RS</type>
<S>
<property>ECAM/flipflop/altitude-alert-rs-set</property>
2020-03-17 13:08:07 +00:00
</S>
<R>
<property>ECAM/flipflop/alt-alert-rs-reset</property>
</R>
<output>ECAM/flipflop/alt-alert-rs-output</output>
</flipflop>
<flipflop>
<type>RS</type>
<S>
<property>ECAM/flipflop/alt-alert-2-rs-set</property>
</S>
<R>
<property>ECAM/flipflop/alt-alert-2-rs-reset</property>
</R>
<output>ECAM/flipflop/alt-alert-2-rs-output</output>
</flipflop>
<flipflop>
<type>RS</type>
<S>
<property>ECAM/flipflop/alt-alert-3-rs-set</property>
</S>
<R>
<property>ECAM/flipflop/alt-alert-rs-reset</property>
</R>
<output>ECAM/flipflop/alt-alert-3-rs-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<!-- falling edge detector - take inverse of following -->
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>3.0</value>
</time>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/monostable/phase-9</property>
2019-11-19 18:04:01 +00:00
</S>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/monostable/phase-9-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>1.0</value>
</time>
<S>
2020-03-17 13:08:07 +00:00
<property>ECAM/phases/to-power-set</property>
2019-11-19 18:04:01 +00:00
</S>
2020-03-17 13:08:07 +00:00
<output>ECAM/phases/monostable/to-power-set-output</output>
2019-11-19 18:04:01 +00:00
</flipflop>
2020-05-06 16:05:53 +00:00
<!-- take inverse of this for rising pulse -->
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>1.0</value>
</time>
<S>
<property>/controls/switches/wing</property>
</S>
<output>/ECAM/phases/wing-anti-ice-pulse</output>
</flipflop>
2020-05-06 20:34:08 +00:00
<!-- falling edge detectors -->
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>10.0</value>
</time>
<S>
<property>/ECAM/warnings/timer/xbleed-fault-output</property>
</S>
<output>/ECAM/warnings/timer/xbleed-fault-output-10</output>
</flipflop>
<flipflop>
<type>monostable</type>
<inverted type="bool">true</inverted>
<time>
<value>15.0</value>
</time>
<S>
<property>/controls/engines/engine[0]/fire-btn</property>
</S>
<output>/ECAM/warnings/timer/xbleed-fault-output-15</output>
</flipflop>
2019-11-19 18:04:01 +00:00
</PropertyList>