Heretic
Resource contributor
- Messages
- 6,830
- Country

Is that will be correct? When turning on starter switch it will be switching on and engine will be starting until N2 = 51% then starter switch is turned off automaticly.
Or not? It's incorrect?! will be: if key toggle starter on and N2 51% and below general engine starter will be on, else is off. Yes?
Your thinking is good, but the code is not.
a) Events can not be evaluated. Only simulation variables can.
b) No "KEY_" prefix for events. This is only used in C++ gauges.
c) No units in events.
d) Only a few events require values.
e) No need for an "else" condition. If the starter is on and N2 is greater than 51%, switch off the starter. You won't anything more.
Therefor:
Code:
(A:GENERAL ENG STARTER:1,bool) (A:TURB ENG N2:1,percent) 51> and if{ (>K:TOGGLE_STARTER1) }




