Jump to content
Sign in to follow this  
Guest Skymed

Turn and Bank Gauge

Recommended Posts

Guest garynorton

Greetings:Is there a void command to disengage the turn and bankgauge? There is a switch on the Cessna 140 to turn the turnand bank gauge off and on. Therefore, I wish to make an XMLgauge that would only turn off and on the turn and bankgauge. Thank you.Gary N

Share this post


Link to post
Share on other sites

A quick glance at the SDK shows this:ATTITUDE_CAGE_BUTTON Cages attitude indicator at 0 pitch and bank


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest Skymed

Make a simple switch with your own L:Var and use that to control the Turn and slip something like: (L:allowslip,bool) if{ (A:Delta heading rate,rpm) } els{ 0 }Steve

Share this post


Link to post
Share on other sites

Why? There's already a stock FS command to do precisely that. Why re-invent the wheel? ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest garynorton

Is this what you mean?(L:allowslip,bool) if{ (A:Delta heading rate,rpm) } els{ 0}I tried it and it does not work. Am I close? Thank you for your help.Gary N

Share this post


Link to post
Share on other sites
Guest Skymed

>Why? There's already a stock FS command to do precisely>that. Why re-invent the wheel? ;)Billbecause there is more way than 1 to skin a cat and every option is worth persuing based on individual needs.One never knows that a little knowledge gained in alternate methods of controlling variables will come into play in the future. God knows, if we relied purely on FS variables there would be havoc out there !!

Share this post


Link to post
Share on other sites
Guest Skymed

GaryWhat are you clicking on?If you are switching the (L:allowslip,bool)with a mouse click, you need to make the mouse click area something like: (L:allowslip,bool) ! (>L:allowslip,bool)This will toggle (L:allowslip,bool) between 1 and zero, and when zero will force the value in (L:allowslip,bool) if{ (A:Delta heading rate,rpm) } els{0}to 0.Also, be careful to set a minimum 1 Space between if/els statements and brackets ie: if{ something } as opposed to els{something}Steve

Share this post


Link to post
Share on other sites
Guest garynorton

Steve:There is a switch on the Cessna 140, which is electric, to turn the turn and bank gauge off and on. Therefore, I wish to make an XMLgauge that only turns off and on the turn and bank gauge. The Master Switch XML gauge was made with a lot of help here, works fine and looks the simular to this gauge. I have tried, with no luck:(L:allowslip,bool) if{ (A:Delta heading rate,rpm) } els{0} (L:allowslip,bool) !(>L:allowslip,bool)I apologize for my lack of programming skills. I am trying and learning. Thank you.Gary N

Share this post


Link to post
Share on other sites
Guest garynorton

Gentlemen:Why does this not work?(A:PARTIAL PANEL TURN COORDINATOR,bool)Thank you,Gary N

Share this post


Link to post
Share on other sites

>Gentlemen:>>Why does this not work?>>>>>(A:PARTIAL PANEL TURN COORDINATOR,bool)>>ImageSizes="64,22"/>>>>ImageSizes="64,22"/>>>>>>>>>>Because you aren't "toggling" the A:PARTIAL PANEL TURN COORDINATOR variable!If you want to monitor the ATTITUDE_CAGE variable, then you need to use the corresponding "state" or "token" variable:(A:ATTITUDE CAGE,bool)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

>I have tried, with no luck:>> > > >(L:allowslip,bool) if{ (A:Delta heading rate,rpm) } els{>0}This one won't work because of the syntax error in the statement. Try this instead:(L:allowslip,bool) if{ (A:Delta heading rate,rpm) } els{ 0}


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

>because there is more way than 1 to skin a cat and every>option is worth persuing based on individual needs.One never>knows that a little knowledge gained in alternate methods of>controlling variables will come into play in the future. God>knows, if we relied purely on FS variables there would be>havoc out there !!Fair enough. I'd rather that 'newbies' become comfortable with using the stock FS variables first, before throwing 'em curve balls... ;)I "tolerate" XML only because I need it for model animations, for gauges I use C++ and GDI+ exclusively.


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest Skymed

Also watch the spaces around the brackets !

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...