Jump to content
Sign in to follow this  
phjvh

Three positions switch

Recommended Posts

hi to all,I need help to compile an .XML three positions switch (see the attached file).The switch is intended to distribute the Attitude signals toggling the Stand by_vacuum_pump in the upper position to:ADI,HSI compass,RMIVOR compassin the lower position to:RMIADF compass.The Mid position is for normal operations.By my .XML file until now the signals distribution works properly but the switch is moving only from Mid to upper position:the first time for:ADI,HSI and RMIVOR the second Time for:RMIADF. Another question is:Does exist a book or any other publication explaining clearly and easy the .XML gauge compiling in the FS9?Because the MS SDKs are very short and vague.Thanks for any helpG.Franco Corrias

Share this post


Link to post
Share on other sites

Hi,1. Use (G:Var1), not bool.2. In the click event use 0 (>G:Var1), 1 (>G:Var1) and 2 (>G:Var1).3. Since you have 3 positions, you need 3 clickspots for the events, unless you want the switch come automatically in the mid position.The next code is an example of the last possibility (after 1 second):(Not tested)(P:Absolute time,seconds) (G:Var2) > if{ (G:Var1) 1 == (G:Var1) 2 == | if{ 0 (>G:Var1) } } (G:Var1)1 (>G:Var1) (P:Absolute time,seconds) 1 + (>G:Var2)2 (>G:Var1) (P:Absolute time,seconds) 1 + (>G:Var2)Hope it helps,Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

No, see subject nr.1, FAQ and solutions.Jan"Beatus Ille Procul Negotiis"

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...