try this for the autopilot: (in the TA320 file
when pressed for the first time
Ap will disconnect
A single cavalry charge aural warning
The master warning flashing for several seconds
an AP OFF red message appearing in the rght column of the uper ecam
pressing it again will stop all these warnings
- Code: Select all
<button n="3">
<desc type="string">Custom</desc>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/ap1</property>
<value>0</value>
</equals>
<equals>
<property>it-autoflight/output/ap2</property>
<value>0</value>
</equals>
</and>
</condition>
<command>nasal</command>
<script>
if (getprop("it-autoflight/output/ap-warning") == 1) {
setprop("it-autoflight/output/ap-warning", 0);
}
if (getprop("it-autoflight/sound/apoffsound") == 1 or getprop("it-autoflight/sound/apoffsound2") == 1) {
setprop("it-autoflight/sound/apoffsound", 0);
setprop("it-autoflight/sound/apoffsound2", 0);
}
</script>
</binding>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/ap1</property>
<value>0</value>
</equals>
<equals>
<property>it-autoflight/output/ap2</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>ECAM/warnings/master-warning-light</property>
<value>0</value>
</binding>
<binding>
<condition>
<or>
<equals>
<property>it-autoflight/output/ap1</property>
<value>1</value>
</equals>
<equals>
<property>it-autoflight/output/ap2</property>
<value>1</value>
</equals>
</or>
</condition>
<command>nasal</command>
<script>
fcu.FCUController.APDisc();
setprop("/sim/sounde/apdiscbtn", 1);
</script>
</binding>
<repeatable type="double">0</repeatable>
</button>
Autothrottle: (add this in TCA Q-Eng 1&2)
press for the 1st time will disconnect autothrust
-you will here the A/THR Disc sound
-Master caution will turn on for several seconds then turn back off
-an A/THR OFF orange message will appear in the right column of the Upper Ecam
- Code: Select all
<button>
<desc type="string">Custom</desc>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/athr</property>
<value>0</value>
</equals>
</and>
</condition>
<command>nasal</command>
<script>
if (getprop("it-autoflight/output/athr-warning") == 1) {
setprop("it-autoflight/output/athr-warning", 0);
}
</script>
</binding>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/athr</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>ECAM/warnings/master-caution-light</property>
<value>0</value>
</binding>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/athr</property>
<value>1</value>
</equals>
</and>
</condition>
<command type="string">nasal</command>
<script type="string">
fcu.FCUController.ATDisc();
</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
<button n="1">
<desc type="string">Custom</desc>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/athr</property>
<value>0</value>
</equals>
</and>
</condition>
<command>nasal</command>
<script>
if (getprop("it-autoflight/output/athr-warning") == 1) {
setprop("it-autoflight/output/athr-warning", 0);
}
</script>
</binding>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/athr</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>ECAM/warnings/master-caution-light</property>
<value>0</value>
</binding>
<binding>
<condition>
<and>
<greater-than-equals>
<property>systems/electrical/bus/dc-ess</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>it-autoflight/output/athr</property>
<value>1</value>
</equals>
</and>
</condition>
<command type="string">nasal</command>
<script type="string">
fcu.FCUController.ATDisc();
</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
tell me if it works as i described it