Jump to content
Sign in to follow this  
Guest Matt Stryker

Simple Guage that doesn't work

Recommended Posts

Guest Matt Stryker

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

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


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

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


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 Schulli

> 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
Guest Matt Stryker

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  

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