- Messages
- 1,468
- Country
Well it's a bit complicated!! At least the way I did it. The pre-flight checklist requires that the vibration meters are tested so that means I have to use L: vars as well as A:vars. The principle A:var is (A:TURB ENG1 VIBRATION, number) eng2 etc. So obviously? I decided to use L: vars to add a wear factor according to the hours the engines have been running. And other L: vars to to account for testing. Also there are vibration meters each for the LP and HP compressors.How do you 'add' vibration, Vololiberista? I didnt find this command in Events in the SDK.
Code:
This extracts the value stored in the state.cfg file previously mentioned and puts values into the front and rear vib sensors.
(A:GENERAL ENG ELAPSED TIME:1, hours) 1000 >
if{ (A:GENERAL ENG ELAPSED TIME:1, hours) 1000 / (>L:vib1,number) (L:vib1,number) 0.075 + (>L:vib1a,number) }
els{ 1.079 (>L:vib1,number) (L:vib1,number) 0.075 + (>L:vib1a,number) }
Code:
This increases the vibration factor according to the throttle position.
<Element>
<Select>
<Value>(A:Turb eng1 N2, percent) 1 > (A:General eng1 throttle lever position, part) 0 < and
if{ 1.2 (>L:rev14,number) } els{ 0 (>L:rev14,number) } </Value>
</Select>
</Element>
Code:
This sets the test values
<Element>
<Select>
<Value>(L:EF_1,number) 0 >
if{ 7.7 (>L:efvib1,number) } els{ 0 (>L:efvib1,number) }
(L:EF_2,number) 0 >
if{ 9.5 (>L:efvib2,number) } els{ 0 (>L:efvib2,number) }</Value>
</Select>
</Element>
Code:
This determines when warnings are produced
Element>
<Select>
<Value>(A:TURB ENG1 VIBRATION, number) (L:vib1,number) * (L:efvib1,number) + (>L:viwarn1,number) </Value>
</Select>
</Element>
<Element>
<Select>
<Value>(A:TURB ENG1 VIBRATION, number) (L:vib1a,number) * (L:rev14,number) + (L:efvib1,number) + (>L:viwarn1,number)</Value>
</Select>
</Element>
Code:
This is the forward LP gauge for engine 1.
<Gauge Name="Eng1 vibration gauge" Version="1.0">
<Image Name="vib_backxx.bmp" Luminous="Yes"/>
<Element>
<Position X="0" Y="278"/>
<Image Name="vib_needlexx.bmp" Luminous="Yes">
<Nonlinearity>
<Item Value="10" X="0" Y="215"/>
<Item Value="0" X="0" Y="0"/>
</Nonlinearity>
<Delay DegreesPerSecond="20"/>
</Image>
<Shift>
<Value>(A:TURB ENG1 VIBRATION, number) (L:vib1,number) * (L:efvib1,number) + (L:vib_test,number) + </Value>
</Shift>
</Element>
<Mouse>
<Tooltip>Engine 1 LP Vibration (%((A:TURB ENG1 VIBRATION, number) (L:vib1,number) * (L:efvib1,number) + (L:vib_test,number) + )%!2.3f!%%)</Tooltip>
</Mouse>
</Gauge>
Easy peasy
