Sidestick priority with indicators and sound
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
84a023bf21
commit
9e3e11a93b
5 changed files with 299 additions and 1 deletions
|
@ -1167,6 +1167,10 @@
|
|||
<object-name>vs-text-test</object-name>
|
||||
<object-name>wpt_led</object-name>
|
||||
<object-name>wpt_led.001</object-name>
|
||||
<object-name>prio_capt.arrow</object-name>
|
||||
<object-name>prio_capt.capt</object-name>
|
||||
<object-name>prio_fo.arrow</object-name>
|
||||
<object-name>prio_fo_fo</object-name>
|
||||
<condition>
|
||||
<greater-than-equals>
|
||||
<property>systems/electrical/bus/dc-ess</property>
|
||||
|
@ -5370,6 +5374,208 @@
|
|||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- Sidestick Priority Lights -->
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>prio_capt.arrow</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[0]</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>prio_fo.arrow</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[1]</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>prio_capt.capt</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[1]</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</and>
|
||||
<and>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[0]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[1]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</and>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>prio_fo_fo</object-name>
|
||||
<condition>
|
||||
<or>
|
||||
<equals>
|
||||
<property>controls/switches/annun-test</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[0]</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</and>
|
||||
<and>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[0]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[1]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</and>
|
||||
</or>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- Flap Lever -->
|
||||
<animation>
|
||||
<type>pick</type>
|
||||
|
|
|
@ -1009,7 +1009,99 @@
|
|||
<factor>40.0</factor>
|
||||
</volume>
|
||||
</apoff>
|
||||
|
||||
|
||||
<priority-left>
|
||||
<name>priority-left</name>
|
||||
<mode>once</mode>
|
||||
<path>Aircraft/A320-family/Sounds/Cockpit/priority-left.wav</path>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>fdm/jsbsim/fbw/sidestick/active[1]</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<volume>
|
||||
<property>/sim/current-view/internal</property>
|
||||
<factor>40.0</factor>
|
||||
</volume>
|
||||
</priority-left>
|
||||
|
||||
<priority-right>
|
||||
<name>priority-right</name>
|
||||
<mode>once</mode>
|
||||
<path>Aircraft/A320-family/Sounds/Cockpit/priority-right.wav</path>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>fdm/jsbsim/fbw/sidestick/active[0]</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<volume>
|
||||
<property>/sim/current-view/internal</property>
|
||||
<factor>40.0</factor>
|
||||
</volume>
|
||||
</priority-right>
|
||||
|
||||
<dual-input>
|
||||
<name>dual-input</name>
|
||||
<mode>looped</mode>
|
||||
<path>Aircraft/A320-family/Sounds/Cockpit/dual-input.wav</path>
|
||||
<condition>
|
||||
<and>
|
||||
<and>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[0]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/fdm/jsbsim/fbw/sidestick/active[1]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[0]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
<or>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/aileron[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
<greater-than-equals>
|
||||
<expression>
|
||||
<abs>
|
||||
<property>/controls/flight/elevator[1]</property>
|
||||
</abs>
|
||||
</expression>
|
||||
<value>0.1</value>
|
||||
</greater-than-equals>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<property>/sim/current-view/internal</property>
|
||||
<factor>40.0</factor>
|
||||
</volume>
|
||||
</dual-input>
|
||||
|
||||
<gear>
|
||||
<name>gear0</name>
|
||||
<mode>in-transit</mode>
|
||||
|
|
BIN
Sounds/Cockpit/dual-input.wav
Normal file
BIN
Sounds/Cockpit/dual-input.wav
Normal file
Binary file not shown.
BIN
Sounds/Cockpit/priority-left.wav
Normal file
BIN
Sounds/Cockpit/priority-left.wav
Normal file
Binary file not shown.
BIN
Sounds/Cockpit/priority-right.wav
Normal file
BIN
Sounds/Cockpit/priority-right.wav
Normal file
Binary file not shown.
Loading…
Reference in a new issue