Sorry; me again!
I'm confused... I have been trying to make the electrical systems actually work, rather than being just dummy switches but I have found an issue.
As far as I can tell, in the sim there is only one type of key event for switching on of off the main generators:
(>K:TOGGLE_MASTER_ALTERNATOR)
(>K:TOGGLE_ALTERNATOR1)
(>K:TOGGLE_ALTERNATOR2)
However, there are two types of value variables for the outcome:
(A:GENERAL ENG MASTER ALTERNATOR, bool)
(A:GENERAL ENG1 MASTER ALTERNATOR, bool)
(A:GENERAL ENG2 MASTER ALTERNATOR, bool)
(A:GENERAL ENG GENERATOR ACTIVE, bool)
(A:GENERAL ENG GENERATOR SWITCH, bool)
/and equivalent for the individual engines/...
Do these two things both get toggled by that one K event? I have tried using the following code to make a generator work if the switch is open and the engine is running. It does not seem to work:
Should I be lookingat something else?
Geoff
I'm confused... I have been trying to make the electrical systems actually work, rather than being just dummy switches but I have found an issue.
As far as I can tell, in the sim there is only one type of key event for switching on of off the main generators:
(>K:TOGGLE_MASTER_ALTERNATOR)
(>K:TOGGLE_ALTERNATOR1)
(>K:TOGGLE_ALTERNATOR2)
However, there are two types of value variables for the outcome:
(A:GENERAL ENG MASTER ALTERNATOR, bool)
(A:GENERAL ENG1 MASTER ALTERNATOR, bool)
(A:GENERAL ENG2 MASTER ALTERNATOR, bool)
(A:GENERAL ENG GENERATOR ACTIVE, bool)
(A:GENERAL ENG GENERATOR SWITCH, bool)
/and equivalent for the individual engines/...
Do these two things both get toggled by that one K event? I have tried using the following code to make a generator work if the switch is open and the engine is running. It does not seem to work:
Code:
<!-- Generator 1 -->
<Element>
<Select>
<Value>
(L:GEN1sw, enum) 1 == (A:ENG1 N1 RPM, enum) 15 > && if{ (A:GENERAL ENG1 MASTER ALTERNATOR, bool) ! if{ 1 (>K:TOGGLE_ALTERNATOR1) } } els{ (A:GENERAL ENG1 MASTER ALTERNATOR, bool) if{ 1 (>K:TOGGLE_ALTERNATOR1) } }
</Value>
</Select>
</Element>
Should I be lookingat something else?
Geoff

