March 15, 200620 yr 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
March 15, 200620 yr 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
March 16, 200620 yr 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
March 16, 200620 yr 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
March 16, 200620 yr 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
March 17, 200620 yr >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 !!
March 17, 200620 yr 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
March 17, 200620 yr 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
March 17, 200620 yr Gentlemen:Why does this not work?(A:PARTIAL PANEL TURN COORDINATOR,bool)Thank you,Gary N
March 17, 200620 yr 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
March 17, 200620 yr 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
March 17, 200620 yr 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
Create an account or sign in to comment