With the desire to learn, I've included into my preferences.xml the following lines:
- Code: Select all
<sim>
. . . .
<systems>
<silly>
<path>/home/rodolfo/.fgfs/silly.xml</path>
</silly>
</systems>
. . . .
</sim>
and my silly.xml file reads:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<state-machine>
<branch>/satc</branch>
<!-- States -->
<state>
<name>initial</name>
</state>
<state>
<name>climbing</name>
<enter>
<command>property-assign</command>
<property>/sim/sound/voices/atc</property>
<value type="string">You are on climbing.</value>
</enter>
</state>
<state>
<name>descending</name>
<enter>
<command>property-assign</command>
<property>/sim/sound/voices/atc</property>
<value type="string">You are descending !</value>
</enter>
</state>
<!-- Transitions -->
<transition>
<name>init</name>
<target>initial</target>
<condition>
<less-than>
<property>/velocities/vertical-speed-fps</property>
<value>10</value>
</less-than>
<greater-than>
<property>/velocities/vertical-speed-fps</property>
<value>-10</value>
</greater-than>
</condition>
</transition>
<transition>
<name>to climbing</name>
<source>initial</source>
<target>climbing</target>
<condition>
<greater-than>
<property>/velocities/vertical-speed-fps</property>
<value>20</value>
</greater-than>
</condition>
</transition>
<transition>
<name>to descending</name>
<source>initial</source>
<target>descending</target>
<condition>
<less-than>
<property>/velocities/vertical-speed-fps</property>
<value>-20</value>
</less-than>
</condition>
</transition>
</state-machine>
</PropertyList>
I launch the FGFS session (including --config=/home/rodolfo/.fgfs/preferences.xml) and takeoff... Nothing happens, no ATC voice at all.
What am I missing?