9d353a3266
Support for GFC700 autopilot. Current modes that work: AP, FD, ROL, PIT, HDG, VS
60 lines
1.5 KiB
XML
60 lines
1.5 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>
|
|
|
|
</PropertyList>
|