XML gauge help

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

XML gauge help

Postby zachary77 » Sat Feb 16, 2019 5:24 am

Hi,

I'm working on improving the SR-71 Blackbird on SimV (the Michael Pook model).
It's good so far, but I'm running into XML issues.

As you can see, according to the diagram below, the tertiary doors (assigned to flaps in FS) should close at Mach 1.5 and be open before that.
Image
However, I'm having issues coding this in XML (I only know some C++).

Any help would be appreciated.

Thanks,
zachary77



Code: Select all
<Gauge Name="TertiaryDoors">


//wingvortex
    <Element>
        <Select>
            <Value>
                (A:AIRSPEED MACH, mach) 1.5 &gt; &amp;
                if{ (A:FLAP HANDLE PERCENT,percent) 100 &lt; if{ (A:FLAP HANDLE PERCENT,percent 100 &==;) } }
                els{ (A:FLAP HANDLE PERCENT,percent) if{ (A:FLAP HANDLE PERCENT,percent 0 &==;) } }
            </Value>
        </Select>
    </Element>



</Gauge>
zachary77
Ground hog
Ground hog
 
Posts: 47
Joined: Fri Mar 21, 2014 1:13 am

Re: XML gauge help

Postby Andiroto » Sat Feb 16, 2019 9:30 am

Hello,
Code: Select all
    <Element>
        <Select>
            <Value>
                (A:AIRSPEED MACH, mach) 1.5 &gt; if{ (>K:FLAPS_UP) } els{ (>K:FLAPS_DOWN) }
            </Value>
        </Select>
    </Element>


If K: event "FLAPS_DOWN" is too much or didnt work, try with FLAPS_1, FLAPS_2 or FLAPS_3!
Andiroto
Ground hog
Ground hog
 
Posts: 30
Joined: Wed Nov 18, 2015 6:56 pm
Location: Only on visit

Re: XML gauge help

Postby zachary77 » Sun Feb 17, 2019 12:47 am

Thanks very much. It works!
Had to modify it a bit but it's fantastic.
How would you like me to credit you for this?
Once again, thanks a lot!
zachary77
Ground hog
Ground hog
 
Posts: 47
Joined: Fri Mar 21, 2014 1:13 am

Re: XML gauge help

Postby Andiroto » Sun Feb 17, 2019 12:54 pm

Glad that it works! All the best for your project!
Andiroto
Ground hog
Ground hog
 
Posts: 30
Joined: Wed Nov 18, 2015 6:56 pm
Location: Only on visit


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 287 guests