Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Turn and Bank Gauge

Featured Replies

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

  • Moderator

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

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

  • Moderator

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

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

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

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

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

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

  • Moderator

>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
  • Moderator

>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
  • Moderator

>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

Also watch the spaces around the brackets !

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.