1
0
Fork 0
fgdata/Aircraft/Instruments-3d/FG1000/GFC700-AP-off-FSM.xml

61 lines
1.5 KiB
XML
Raw Normal View History

<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>
</PropertyList>