Page 1 of 1

XML gauge help

PostPosted: Sat Feb 16, 2019 5:24 am
by zachary77
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>

Re: XML gauge help

PostPosted: Sat Feb 16, 2019 9:30 am
by Andiroto
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!

Re: XML gauge help

PostPosted: Sun Feb 17, 2019 12:47 am
by zachary77
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!

Re: XML gauge help

PostPosted: Sun Feb 17, 2019 12:54 pm
by Andiroto
Glad that it works! All the best for your project!