syd

> I sent in the dhc2 and citation a few weeks ago... maybe they arent
> updated on the web page yet , but if you can download via cvs they
> should be there. I started working on the b1900d  tonight  ...it may
> take a few days  .....  I doubt they will ever be 100 % complete ....
> the b1900d has a ground proximity warning system that I'd love to make
> functional , but my C programming is REALLY rusty :).
> 
> 

C? A simple GPWS needs a few lines of XML in the sound.xml configuration
file. Here is a fragment:

<stall> 
        <name>gear up warn</name>
        <mode>looped</mode>
        <path>Sounds/gear-hrn.wav</path>
        <condition> 
          <and> 
            <less-than> 
              <property>controls/engines/engine/throttle</property>
              <value>0.3</value>
            </less-than>
            <equals> 
              <property>sim/alarms/gear-warn</property>
              <value>0</value>
            </equals>
            <less-than> 
              <property>gear/gear/position-norm</property>
              <value>1</value>
            </less-than>
            <less-than> 
              <property>gear/gear[1]/position-norm</property>
              <value>1</value>
            </less-than>
          </and>
        </condition>
        <property>/sim/alarms/gear-warn</property>
        <volume> 
          <factor>0.7</factor>
        </volume>
        <reference-dist>10.0</reference-dist>
        <max-dist>20.0</max-dist>
      </stall>

This code sounds the gear warning klaxon if the throttle is closed and the
gear is up. Substitute /position/altitude-agl-ft, probably remove the
throttle stuff, add whatever sound you want and you have a GPWS.

Regards

Vivian


_______________________________________________
Flightgear-users mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-users
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to