Sign in to follow this  
Guest Matt Stryker

Simple Guage that doesn't work

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

>""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... ;)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

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