Debian Codegraph @

Aircraft/Instruments-3d/FG1000/GFC700-AP-off-FSM.xml

raw symbols SCIP
1 <?xml version="1.0" ?>
2 <PropertyList>
3 <!-- GFC 700 Autopilot Finite State Machine for switching OFF the AP.
4
5 This is rather odd. This handles switching on/off the autopilot, which reverts
6 to Flight Director mode, by simply setting the passive-mode flag.
7
8 -->
9 <branch>/autopilot/GFC700/FSM/AP-off</branch>
10
11 <state>
12 <name>OFF</name>
13 <enter>
14 <!-- Reset button to avoid triggering next transition immediately -->
15 <command>property-assign</command>
16 <property>/autopilot/AP-mode-button</property>
17 <value></value>
18 </enter>
19 <enter>
20 <command>property-assign</command>
21 <property>/autopilot/locks/passive-mode</property>
22 <value>1</value>
23 </enter>
24 </state>
25
26 <state>
27 <name>ON</name>
28 <enter>
29 <!-- Reset button to avoid triggering next transition immediately -->
30 <command>property-assign</command>
31 <property>/autopilot/AP-mode-button</property>
32 <value></value>
33 </enter>
34 <enter>
35 <command>property-assign</command>
36 <property>/autopilot/locks/passive-mode</property>
37 <value>0</value>
38 </enter>
39 </state>
40
41 <transition>
42 <name>OFF-ON</name>
43 <source>OFF</source>
44 <target>ON</target>
45 <exclude-target>true</exclude-target>
46 <condition>
47 <equals><property>/autopilot/AP-mode-button</property><value>AP</value></equals>
48 </condition>
49 </transition>
50
51 <transition>
52 <name>ON-OFF</name>
53 <source>ON</source>
54 <target>OFF</target>
55 <exclude-target>false</exclude-target>
56 <condition>
57 <equals><property>/autopilot/AP-mode-button</property><value>AP</value></equals>
58 </condition>
59 </transition>
60
61 <!-- Changing to GA mode automatically disables the autopilot -->
62 <transition>
63 <name>ON-OFF</name>
64 <source>ON</source>
65 <target>OFF</target>
66 <exclude-target>false</exclude-target>
67 <condition>
68 <equals><property>/autopilot/AP-mode-button</property><value>GA</value></equals>
69 </condition>
70 </transition>
71
72 </PropertyList>