Justin Smithies wrote:
 > How can i add the above ?

Oh yes im using Yasim so the property /sim/alarms/stall-warning doesnt exist.

One thing you could do is to include a Nasal script that sets sim/alarms/stall-warning based on the right conditions and use that property in the configuration you included.

To do it using XML only you will need to specify three independent configuration sections that exclude the other situations (in the condition section), like this:

<stall>
 <name>stall</name>
 <mode>looped</mode>
 <path>Sounds/stall.wav</path>
 <condition>
  <less-than>
   <property>velocities/airspeed-kt</property>
   <value>150</value>
  </less-than>
  <not>
   <property>/gear/gear[0]/wow</property>
   <property>/gear/gear[1]/wow</property>
   <property>/gear/gear[2]/wow</property>
   <property>/surface-positions/flap-pos-norm</property>
   <property>/gear/gear[0]/position-norm</property>
  </not>
 </condition>
 <volume>
  <max>1.0</max>
 </volume>
</stall>

<stall>
 <name>stall</name>
 <mode>looped</mode>
 <path>Sounds/stall.wav</path>
 <condition>
  <less-than>
   <property>velocities/airspeed-kt</property>
   <value>100</value>
  </less-than>
  <not>
   <property>/gear/gear[0]/wow</property>
   <property>/gear/gear[1]/wow</property>
   <property>/gear/gear[2]/wow</property>
   <property>/gear/gear[0]/position-norm</property>
  </not>
 </condition>
 <volume>
  <max>1.0</max>
 </volume>
</stall>
<stall>
 <name>stall</name>
 <mode>looped</mode>
 <path>Sounds/stall.wav</path>
 <condition>
  <less-than>
   <property>velocities/airspeed-kt</property>
   <value>120</value>
  </less-than>
  <not>
   <property>/gear/gear[0]/wow</property>
   <property>/gear/gear[1]/wow</property>
   <property>/gear/gear[2]/wow</property>
   <property>/surface-positions/flap-pos-norm</property>
  </not>
 </condition>
 <volume>
  <max>1.0</max>
 </volume>
</stall>

Erik


--
http://www.ehtw.info (Dutch)    Future of Enschede Airport Twente
http://www.ehofman.com/fgfs     FlightGear Flight Simulator


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to