I'm wondering if someone can help. 2D gauge code to immitate high and low blower/supercharger settings that works perfectly with a single engine, when combined to work on four engines via a single lever, causes the needles in all four boost gauges to vibrate and swing back and forth. The MP does increase as required. All engine settings in the aircraft.cfg remain the same as the single engine version.
When turning off the high blower, occasionally the MP and associated needles will increase yet again instead of going back down to the lower setting. Is there perhaps a more efficient way to combine the four?
Thanks!
<Gauge Name="superchargers">
<Element>
<Select>
<Value>(L:Superchargers, bool) 0 >
if{ (A:RECIP ENG NITROUS TANK VALVE:1,number)(A:RECIP ENG NITROUS TANK VALVE:2,number)(A:RECIP ENG NITROUS TANK VALVE:3,number)(A:RECIP ENG NITROUS TANK VALVE:4,number) 1 < if{ 1 (>K:NITROUS_TANK_VALVE_TOGGLE) 2 (>K:NITROUS_TANK_VALVE_TOGGLE) 3 (>K:NITROUS_TANK_VALVE_TOGGLE) 4 (>K:NITROUS_TANK_VALVE_TOGGLE) } }
els{ (A:RECIP ENG NITROUS TANK VALVE:1,number)(A:RECIP ENG NITROUS TANK VALVE:2,number)(A:RECIP ENG NITROUS TANK VALVE:3,number)(A:RECIP ENG NITROUS TANK VALVE:4,number) 0 > if{ 1 (>K:NITROUS_TANK_VALVE_TOGGLE) 2 (>K:NITROUS_TANK_VALVE_TOGGLE) 3 (>K:NITROUS_TANK_VALVE_TOGGLE) 4 (>K:NITROUS_TANK_VALVE_TOGGLE) } }
</Value>
</Select>
</Element>
</Gauge>
When turning off the high blower, occasionally the MP and associated needles will increase yet again instead of going back down to the lower setting. Is there perhaps a more efficient way to combine the four?
Thanks!
<Gauge Name="superchargers">
<Element>
<Select>
<Value>(L:Superchargers, bool) 0 >
if{ (A:RECIP ENG NITROUS TANK VALVE:1,number)(A:RECIP ENG NITROUS TANK VALVE:2,number)(A:RECIP ENG NITROUS TANK VALVE:3,number)(A:RECIP ENG NITROUS TANK VALVE:4,number) 1 < if{ 1 (>K:NITROUS_TANK_VALVE_TOGGLE) 2 (>K:NITROUS_TANK_VALVE_TOGGLE) 3 (>K:NITROUS_TANK_VALVE_TOGGLE) 4 (>K:NITROUS_TANK_VALVE_TOGGLE) } }
els{ (A:RECIP ENG NITROUS TANK VALVE:1,number)(A:RECIP ENG NITROUS TANK VALVE:2,number)(A:RECIP ENG NITROUS TANK VALVE:3,number)(A:RECIP ENG NITROUS TANK VALVE:4,number) 0 > if{ 1 (>K:NITROUS_TANK_VALVE_TOGGLE) 2 (>K:NITROUS_TANK_VALVE_TOGGLE) 3 (>K:NITROUS_TANK_VALVE_TOGGLE) 4 (>K:NITROUS_TANK_VALVE_TOGGLE) } }
</Value>
</Select>
</Element>
</Gauge>