Skip to content

Commit

Permalink
fix(a380x): prevented clickspots being activated behind L/G GVTY mast…
Browse files Browse the repository at this point in the history
…er guard (flybywiresim#8973)

fix: prevented clickspots being activated behind L/G GVTY master guard
  • Loading branch information
2hwk authored Oct 14, 2024
1 parent c49c60d commit 7b8a056
Showing 1 changed file with 43 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,34 +123,63 @@
<UseTemplate Name="ASOBO_GT_Switch_Dummy">
<NODE_ID>GRVTY_LDG_LOCK1</NODE_ID>
<ANIM_NAME>GRVTY_LDG_LOCK1</ANIM_NAME>
</UseTemplate>

<UseTemplate Name="ASOBO_GT_Switch_Dummy">
<NODE_ID>GRVTY_LDG_LOCK2</NODE_ID>
<ANIM_NAME>GRVTY_LDG_LOCK2</ANIM_NAME>
<LEFT_SINGLE_CODE>
(L:A32NX_LG_GRVTY_SWITCH_GUARD_1) ! (&gt;L:A32NX_LG_GRVTY_SWITCH_GUARD_1)
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD) ! (&gt;L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</LEFT_SINGLE_CODE>
</UseTemplate>

<UseTemplate Name="ASOBO_GT_Switch_Dummy">
<NODE_ID>GRVTY_LDG_LOCK3</NODE_ID>
<ANIM_NAME>GRVTY_LDG_LOCK3</ANIM_NAME>
<LEFT_SINGLE_CODE>
(L:A32NX_LG_GRVTY_SWITCH_GUARD_2) ! (&gt;L:A32NX_LG_GRVTY_SWITCH_GUARD_2)
</LEFT_SINGLE_CODE>
</UseTemplate>
<Component ID="GRVTY_LDG_LOCK2" Node="GRVTY_LDG_LOCK2">
<UseTemplate Name="ASOBO_GT_Switch_2States">
<NODE_ID>GRVTY_LDG_LOCK2</NODE_ID>
<ANIM_NAME>GRVTY_LDG_LOCK2</ANIM_NAME>
<START_STATE>0</START_STATE>
<CODE_POS_0>0 (&gt;L:A32NX_LG_GRVTY_SWITCH_GUARD_1)</CODE_POS_0>
<CODE_POS_1>1 (&gt;L:A32NX_LG_GRVTY_SWITCH_GUARD_1)</CODE_POS_1>
<CODE_POS_0_VERIF>
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</CODE_POS_0_VERIF>
<CODE_POS_1_VERIF>
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</CODE_POS_1_VERIF>
<STATE0_TEST>(L:A32NX_LG_GRVTY_SWITCH_GUARD_1) 0 ==</STATE0_TEST>
<STATE1_TEST>(L:A32NX_LG_GRVTY_SWITCH_GUARD_1) 1 ==</STATE1_TEST>
</UseTemplate>
</Component>

<Component ID="GRVTY_LDG_LOCK3" Node="GRVTY_LDG_LOCK3">
<UseTemplate Name="ASOBO_GT_Switch_2States">
<NODE_ID>GRVTY_LDG_LOCK3</NODE_ID>
<ANIM_NAME>GRVTY_LDG_LOCK3</ANIM_NAME>
<START_STATE>0</START_STATE>
<CODE_POS_0>0 (&gt;L:A32NX_LG_GRVTY_SWITCH_GUARD_2)</CODE_POS_0>
<CODE_POS_1>1 (&gt;L:A32NX_LG_GRVTY_SWITCH_GUARD_2)</CODE_POS_1>
<CODE_POS_0_VERIF>
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</CODE_POS_0_VERIF>
<CODE_POS_1_VERIF>
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</CODE_POS_1_VERIF>
<STATE0_TEST>(L:A32NX_LG_GRVTY_SWITCH_GUARD_2) 0 ==</STATE0_TEST>
<STATE1_TEST>(L:A32NX_LG_GRVTY_SWITCH_GUARD_2) 1 ==</STATE1_TEST>
</UseTemplate>
</Component>

<Component ID="GRVTY_LDG" Node="GRVTY_LDG">
<UseTemplate Name="ASOBO_GT_Switch_3States">
<NODE_ID>GRVTY_LDG</NODE_ID>
<ANIM_NAME>GRVTY_LDG</ANIM_NAME>
<START_STATE>1</START_STATE>
<CODE_POS_0>0 (&gt;L:A32NX_LG_GRVTY_SWITCH_POS)</CODE_POS_0>
<CODE_POS_0_VERIF>
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</CODE_POS_0_VERIF>
<CODE_POS_1>1 (&gt;L:A32NX_LG_GRVTY_SWITCH_POS)</CODE_POS_1>
<CODE_POS_1_VERIF>
(L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD)
</CODE_POS_1_VERIF>
<CODE_POS_2>2 (&gt;L:A32NX_LG_GRVTY_SWITCH_POS)</CODE_POS_2>
<CODE_POS_2_VERIF>
(L:A32NX_LG_GRVTY_SWITCH_GUARD_1) (L:A32NX_LG_GRVTY_SWITCH_GUARD_2) and
(L:A32NX_LG_GRVTY_SWITCH_GUARD_1) (L:A32NX_LG_GRVTY_SWITCH_GUARD_2) and (L:A32NX_LG_GRVTY_MASTER_SWITCH_GUARD) and
</CODE_POS_2_VERIF>
<STATE0_TEST>(L:A32NX_LG_GRVTY_SWITCH_POS) 0 ==</STATE0_TEST>
<STATE1_TEST>(L:A32NX_LG_GRVTY_SWITCH_POS) 1 ==</STATE1_TEST>
Expand Down

0 comments on commit 7b8a056

Please sign in to comment.