I made a try, by looking at the various variables, how to read this or that etc...
So in the end, I tried creating a gauge... but unfortunately, it didn't work.
I made several modifications but there is something wrong in my conditions. Sometimes the avionics are always ON, sometimes always OFF... it doesn't take the engine+gen status correctly into account.
I'm sure it's a stupid mistake hidden somewhere, but it's 01:08 AM here, and my brain cannot work anymore.... Here is the XML code I created. I hope you can use it as a valid base and make it work after some corrections.
- Code: Select all
<Gauge Name="Automatic avionics">
<Element>
<Select>
<Value>
(A:APU PCT RPM,percent) 10 >
(A:APU GENERATOR SWITCH,bool) &&
(A:ENG1 N2 RPM,rpm) 10 >
(A:General eng1 generator switch,bool) && ||
(A:ENG2 N2 RPM,rpm) 10 >
(A:General eng2 generator switch,bool) && || if{ 1 (>L:Avionics master switch,bool)}</Value>
</Select>
</Element>
</Gauge>