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.

Simple Guage that doesn't work

Featured Replies

Can someone please look at this and tell me what's wrong with it?In FS9, absolutely nothing happens when I hit the brakes. I want it to kill all of the autopilot controls.--------------------This gauge *should* shut off all autopilot controls including auto speed control when the brakes are used in the air. This is to help with landing preparations.. (A:BRAKE LEFT POSITION,number) 0.1 > (A:BRAKE RIGHT POSITION,number) 0.1 > || if{ (>K:AP_MACH_OFF) (>K:AP_AIRSPEED_OFF) (>K:AUTOPILOT_OFF) (>K:AP_ATT_HOLD_OFF) (>K:AP_LOC_HOLD_OFF) (>K:AP_APR_HOLD_OFF) (>K:AP_HDG_HOLD_OFF) (>K:AP_ALT_HOLD_OFF) (>K:AP_WING_LEVELER_OFF) (>K:AP_BC_HOLD_OFF) (>K:AP_NAV1_HOLD_OFF) } And in the panel:gauge17=AutopilotOffWithBrakes, 0,0Any ideas?I know that guages don't activate unless you switch to the panel view, so I always try that. I've been told to try putting it in a VC, so I'll try that tonight.

  • Moderator

As I recall, "Brakes" don't work when airborne... ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

""As I recall, "Brakes" don't work when airborne""But the Brake events/variables DO :-)By the way, his problem is the .xml file location ...Rob

  • Moderator

>""As I recall, "Brakes" don't work when airborne"">>But the Brake events/variables DO :-)>By the way, his problem is the .xml file location ...Ah, good. I was in the process of "editing" my original reply to suggest writing a to display the variable to CHECK whether it was actually working... but, I got a phone call and forgot to finish the "edit" within the alloted time. ;(I could see that there was nothing wrong with the code though... ;)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

> if{> (>K:AP_MACH_OFF)> (>K:AP_AIRSPEED_OFF)> (>K:AUTOPILOT_OFF)> (>K:AP_ATT_HOLD_OFF)> (>K:AP_LOC_HOLD_OFF)> (>K:AP_APR_HOLD_OFF)> (>K:AP_HDG_HOLD_OFF)> (>K:AP_ALT_HOLD_OFF)> (>K:AP_WING_LEVELER_OFF)> (>K:AP_BC_HOLD_OFF)> (>K:AP_NAV1_HOLD_OFF)> }u have to put a 1 in each line inside if{} and u need the units!if{...1 (>K:autopilot_off, bool)...}or u try simply this part:if{ 0 (>K:AUTO_THROTTLE_ARM, bool) 0 (>K:AP_MASTER, bool)}this turns off the autothrottle and the complete autopilot, but flightdirector stays on.

I appreciate all your help.My origional code is working now. I have learned that you cannot have an XML gauge loose in the gauges folder. I put it in its own folder, then pointed to it with the panel.cfg. Now it works.You guys are great.I didn't, however, need the "1" in each line or a unit like "bool." I have seen that in other gauges, but I don't know what that's for. I'm doing my best to find answers by searching this forum, but there is so much information and I don't know enough to know what to search for.I've completely read the FAQ threads, and that helps, but it's a lot of information to take in.

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.