Formatting, ensure that problem with sync of law is prevented
This commit is contained in:
parent
a28879577c
commit
1d77c5a11a
2 changed files with 28 additions and 22 deletions
|
@ -51,10 +51,10 @@
|
|||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
setprop("it-fbw/degrade-law", 0);
|
||||
setprop("it-fbw/law", 0);
|
||||
setprop("it-fbw/degrade-yaw-law", 0);
|
||||
setprop("it-fbw/yaw-law", 0);
|
||||
setprop("/it-fbw/degrade-law", 0);
|
||||
setprop("/it-fbw/law", 0);
|
||||
setprop("/it-fbw/degrade-yaw-law", 0);
|
||||
setprop("/it-fbw/yaw-law", 0);
|
||||
gui.popupTip("Fly By Wire switched to NORMAL law!");
|
||||
</script>
|
||||
</binding>
|
||||
|
@ -69,10 +69,10 @@
|
|||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
setprop("it-fbw/degrade-law", 1);
|
||||
setprop("it-fbw/law", 1);
|
||||
setprop("it-fbw/degrade-yaw-law", 1);
|
||||
setprop("it-fbw/yaw-law", 1);
|
||||
setprop("/it-fbw/degrade-law", 1);
|
||||
setprop("/it-fbw/law", 1);
|
||||
setprop("/it-fbw/degrade-yaw-law", 1);
|
||||
setprop("/it-fbw/yaw-law", 1);
|
||||
gui.popupTip("Fly By Wire switched to ALTERNATE law!");
|
||||
</script>
|
||||
</binding>
|
||||
|
@ -87,10 +87,10 @@
|
|||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
setprop("it-fbw/degrade-law", 2);
|
||||
setprop("it-fbw/law", 2);
|
||||
setprop("it-fbw/degrade-yaw-law", 2);
|
||||
setprop("it-fbw/yaw-law", 2);
|
||||
setprop("/it-fbw/degrade-law", 2);
|
||||
setprop("/it-fbw/law", 2);
|
||||
setprop("/it-fbw/degrade-yaw-law", 2);
|
||||
setprop("/it-fbw/yaw-law", 2);
|
||||
gui.popupTip("Fly By Wire switched to DIRECT law!");
|
||||
</script>
|
||||
</binding>
|
||||
|
@ -105,10 +105,10 @@
|
|||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
setprop("it-fbw/degrade-law", 3);
|
||||
setprop("it-fbw/law", 3);
|
||||
setprop("it-fbw/degrade-yaw-law", 2);
|
||||
setprop("it-fbw/yaw-law", 2);
|
||||
setprop("/it-fbw/degrade-law", 3);
|
||||
setprop("/it-fbw/law", 3);
|
||||
setprop("/it-fbw/degrade-yaw-law", 2);
|
||||
setprop("/it-fbw/yaw-law", 2);
|
||||
gui.popupTip("Fly By Wire switched to MECHANICAL BACKUP law!");
|
||||
</script>
|
||||
</binding>
|
||||
|
|
|
@ -56,11 +56,14 @@
|
|||
</test>
|
||||
</switch>
|
||||
|
||||
<switch name="fbw/yaw/gain-switch">
|
||||
<switch name="fbw/yaw/gain-switch"> <!-- disable auto-trim -->
|
||||
<default value="0"/>
|
||||
<test logic="OR" value="1">
|
||||
position/wow eq 1
|
||||
/it-fbw/yaw-law eq 2
|
||||
<test logic="AND">
|
||||
/it-fbw/yaw-law eq 2
|
||||
/it-fbw/law ne 0
|
||||
</test>
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
@ -1538,11 +1541,14 @@
|
|||
<input>fbw/yaw/fmgc-cmd</input>
|
||||
</summer>
|
||||
|
||||
<switch name="fbw/yaw/law-switch">
|
||||
<switch name="fbw/yaw/law-switch"> <!-- Is the yaw damper active or not? -->
|
||||
<default value="0"/>
|
||||
<test logic="OR" value="1">
|
||||
/it-fbw/yaw-law eq 0
|
||||
/it-fbw/yaw-law eq 1
|
||||
<test logic="AND" value="1">
|
||||
/it-fbw/law ne 3
|
||||
<test logic="OR">
|
||||
/it-fbw/yaw-law eq 0
|
||||
/it-fbw/yaw-law eq 1
|
||||
</test>
|
||||
</test>
|
||||
</switch>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue