May 10, 200521 yr 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.
May 10, 200521 yr 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
May 10, 200521 yr ""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
May 10, 200521 yr 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
May 11, 200521 yr > 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.
May 11, 200521 yr 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