1
0
Fork 0
fgdata/Aircraft/Instruments-3d/FG1000/GFC700-AP-off-FSM.xml
2019-02-17 21:35:32 +00:00

71 lines
1.8 KiB
XML

<PropertyList>
<!-- GFC 700 Autopilot Finite State Machine for switching OFF the AP.
This is rather odd. This handles switching on/off the autopilot, which reverts
to Flight Director mode, by simply setting the passive-mode flag.
-->
<branch>/autopilot/GFC700/FSM/AP-off</branch>
<state>
<name>OFF</name>
<enter>
<!-- Reset button to avoid triggering next transition immediately -->
<command>property-assign</command>
<property>/autopilot/AP-mode-button</property>
<value></value>
</enter>
<enter>
<command>property-assign</command>
<property>/autopilot/locks/passive-mode</property>
<value>1</value>
</enter>
</state>
<state>
<name>ON</name>
<enter>
<!-- Reset button to avoid triggering next transition immediately -->
<command>property-assign</command>
<property>/autopilot/AP-mode-button</property>
<value></value>
</enter>
<enter>
<command>property-assign</command>
<property>/autopilot/locks/passive-mode</property>
<value>0</value>
</enter>
</state>
<transition>
<name>OFF-ON</name>
<source>OFF</source>
<target>ON</target>
<exclude-target>true</exclude-target>
<condition>
<equals><property>/autopilot/AP-mode-button</property><value>AP</value></equals>
</condition>
</transition>
<transition>
<name>ON-OFF</name>
<source>ON</source>
<target>OFF</target>
<exclude-target>false</exclude-target>
<condition>
<equals><property>/autopilot/AP-mode-button</property><value>AP</value></equals>
</condition>
</transition>
<!-- Changing to GA mode automatically disables the autopilot -->
<transition>
<name>ON-OFF</name>
<source>ON</source>
<target>OFF</target>
<exclude-target>false</exclude-target>
<condition>
<equals><property>/autopilot/AP-mode-button</property><value>GA</value></equals>
</condition>
</transition>
</PropertyList>