Sign in to follow this  
Guest

Momentary switches using XML

Recommended Posts

hi,I'm working on a DC-9 project that requires momentary switches. The programming is being done entirely in XML.How can this type of switch be done?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

If I understand you correct, you want to create a switch that automatically returns to it's original position? If so, here is complete gaugecode for a threeposition switch which is "springloaded" to center position; used to select which tank to gauge (its realistic, not fantasy btw :))(L:tank gauging,enum)(*selected tank*) (*main tanks*) (*aux tanks*) (P:Absolute time, seconds) (L:tankgauge timer,seconds) > if{ 0 (>L:tank gauging,enum) }Down for Main, Up for Aux, Center for Selected Tank2 (>L:tank gauging,enum) (P:Absolute time, seconds) 0.75 + (>L:tankgauge timer,seconds)1 (>L:tank gauging,enum) (P:Absolute time, seconds) 0.75 + (>L:tankgauge timer,seconds)If only an on/off position is used however, you can simplify the gauge by checking the (in this case) (L:tankgauge timer,seconds) against (P:Absolute time,seconds) where you select which graphics to use, and get rid of the "set to zero" function as seen in the lower "element" above.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this