June 5, 200322 yr 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?
June 6, 200322 yr 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.
Create an account or sign in to comment