1
0
Fork 0

C172P: Add EGT gauge (bug#24)

This commit is contained in:
Torsten Dreyer 2011-04-24 23:22:28 +02:00
parent 2f850158b5
commit 7f6bdf9ebd
6 changed files with 52120 additions and 51612 deletions

View file

@ -0,0 +1,479 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0 0 0 shi 10 trans 0
MATERIAL "ac3dmat3" rgb 1 0 0 amb 1 0 0 emis 0 0 0 spec 0 0 0 shi 10 trans 0
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0 0 0 shi 128 trans 1
OBJECT world
kids 2
OBJECT group
name "egt"
loc 0.00108333 -0.00211694 -0.00299342
kids 4
OBJECT poly
name "Knob"
loc 0.00141667 -0.00554903 0.00299342
crease 45.000000
numvert 25
0.00257786 0 0
-0.00257786 -1.86265e-09 0.0025
-0.00257786 -0.00125 0.00216506
-0.00257786 -0.00216506 0.00125
-0.00257786 -0.0025 0
-0.00257786 -0.00216506 -0.00125
-0.00257786 -0.00125 -0.00216506
-0.00257786 0 -0.0025
-0.00257786 0.00125 -0.00216506
-0.00257786 0.00216506 -0.00125
-0.00257786 0.0025 0
-0.00257786 0.00216506 0.00125
-0.00257786 0.00125 0.00216506
0.00257786 -1.86265e-09 0.0025
0.00257786 -0.00125 0.00216506
0.00257786 -0.00216506 0.00125
0.00257786 -0.0025 0
0.00257786 -0.00216506 -0.00125
0.00257786 -0.00125 -0.00216506
0.00257786 0 -0.0025
0.00257786 0.00125 -0.00216506
0.00257786 0.00216506 -0.00125
0.00257786 0.0025 0
0.00257786 0.00216506 0.00125
0.00257786 0.00125 0.00216506
numsurf 24
SURF 0x10
mat 1
refs 3
0 0 0
24 0 0
13 0 0
SURF 0x10
mat 1
refs 3
0 0 0
13 0 0
14 0 0
SURF 0x10
mat 1
refs 3
0 0 0
14 0 0
15 0 0
SURF 0x10
mat 1
refs 3
0 0 0
15 0 0
16 0 0
SURF 0x10
mat 1
refs 3
0 0 0
16 0 0
17 0 0
SURF 0x10
mat 1
refs 3
0 0 0
17 0 0
18 0 0
SURF 0x10
mat 1
refs 3
0 0 0
18 0 0
19 0 0
SURF 0x10
mat 1
refs 3
0 0 0
19 0 0
20 0 0
SURF 0x10
mat 1
refs 3
0 0 0
20 0 0
21 0 0
SURF 0x10
mat 1
refs 3
0 0 0
21 0 0
22 0 0
SURF 0x10
mat 1
refs 3
0 0 0
22 0 0
23 0 0
SURF 0x10
mat 1
refs 3
0 0 0
23 0 0
24 0 0
SURF 0x10
mat 1
refs 4
24 -2.98023e-08 1
12 -2.98023e-08 0
1 0.0833333 0
13 0.0833333 1
SURF 0x10
mat 1
refs 4
13 0.0833333 1
1 0.0833333 0
2 0.166667 0
14 0.166667 1
SURF 0x10
mat 1
refs 4
14 0.166667 1
2 0.166667 0
3 0.25 0
15 0.25 1
SURF 0x10
mat 1
refs 4
15 0.25 1
3 0.25 0
4 0.333333 0
16 0.333333 1
SURF 0x10
mat 1
refs 4
16 0.333333 1
4 0.333333 0
5 0.416667 0
17 0.416667 1
SURF 0x10
mat 1
refs 4
17 0.416667 1
5 0.416667 0
6 0.5 0
18 0.5 1
SURF 0x10
mat 1
refs 4
18 0.5 1
6 0.5 0
7 0.583333 0
19 0.583333 1
SURF 0x10
mat 1
refs 4
19 0.583333 1
7 0.583333 0
8 0.666667 0
20 0.666667 1
SURF 0x10
mat 1
refs 4
20 0.666667 1
8 0.666667 0
9 0.75 0
21 0.75 1
SURF 0x10
mat 1
refs 4
21 0.75 1
9 0.75 0
10 0.833333 0
22 0.833333 1
SURF 0x10
mat 1
refs 4
22 0.833333 1
10 0.833333 0
11 0.916667 0
23 0.916667 1
SURF 0x10
mat 1
refs 4
23 0.916667 1
11 0.916667 0
12 1 0
24 1 1
kids 0
OBJECT poly
name "Needle"
loc -0.00108333 0.00343209 -0.00598684
crease 45.000000
numvert 5
-0.001 0.00827315 0.0276479
-0.001 0.00968736 0.0262337
-0.001 -0.00827315 0.00827316
-0.001 -0.00968736 0.00968737
-0.001 0.00992145 0.027882
numsurf 1
SURF 0x0
mat 0
refs 5
3 0 0
2 1 0
1 1 1
4 0.5 1
0 0 1
kids 0
OBJECT poly
name "Bug"
loc -0.00158333 0.0034321 -0.00598683
crease 45.000000
numvert 5
-1.80444e-09 0.00992143 0.0278819
-1.74623e-10 -0.00915701 0.00915704
-1.74623e-10 -0.00880346 0.00880349
-1.68802e-09 0.00915702 0.026764
-1.80444e-09 0.00880346 0.0271175
numsurf 1
SURF 0x0
mat 1
refs 5
1 0 0
2 1 0
3 1 1
0 0.5 1
4 0 1
kids 0
OBJECT group
name "Pick"
loc 0.00141667 -0.00554903 0.00299342
kids 2
OBJECT poly
name "Knob.Pick.L"
crease 45.000000
numvert 15
0.00283564 0 0
-0.00283564 -2.32831e-09 0.003
-0.00283564 -0.0015 0.00259808
-0.00283564 -0.00259808 0.0015
-0.00283564 -0.003 0
-0.00283564 0.003 0
-0.00283564 0.00259808 0.0015
-0.00283564 0.0015 0.00259808
0.00283564 -2.32831e-09 0.003
0.00283564 -0.0015 0.00259808
0.00283564 -0.00259808 0.0015
0.00283564 -0.003 0
0.00283564 0.003 0
0.00283564 0.00259808 0.0015
0.00283564 0.0015 0.00259808
numsurf 12
SURF 0x10
mat 2
refs 3
0 0 0
14 0 0
8 0 0
SURF 0x10
mat 2
refs 3
0 0 0
8 0 0
9 0 0
SURF 0x10
mat 2
refs 3
0 0 0
9 0 0
10 0 0
SURF 0x10
mat 2
refs 3
0 0 0
10 0 0
11 0 0
SURF 0x10
mat 2
refs 3
0 0 0
12 0 0
13 0 0
SURF 0x10
mat 2
refs 3
0 0 0
13 0 0
14 0 0
SURF 0x10
mat 2
refs 4
14 -2.98023e-08 1
7 -2.98023e-08 0
1 0.0833333 0
8 0.0833333 1
SURF 0x10
mat 2
refs 4
8 0.0833333 1
1 0.0833333 0
2 0.166667 0
9 0.166667 1
SURF 0x10
mat 2
refs 4
9 0.166667 1
2 0.166667 0
3 0.25 0
10 0.25 1
SURF 0x10
mat 2
refs 4
10 0.25 1
3 0.25 0
4 0.333333 0
11 0.333333 1
SURF 0x10
mat 2
refs 4
12 0.833333 1
5 0.833333 0
6 0.916667 0
13 0.916667 1
SURF 0x10
mat 2
refs 4
13 0.916667 1
6 0.916667 0
7 1 0
14 1 1
kids 0
OBJECT poly
name "Knob.Pick.R"
crease 45.000000
numvert 15
0.00283564 0.003 0
0.00283564 0.00259808 -0.0015
0.00283564 0.0015 -0.00259808
0.00283564 0 -0.003
0.00283564 -0.0015 -0.00259808
0.00283564 -0.00259808 -0.0015
0.00283564 -0.003 0
-0.00283564 0.003 0
-0.00283564 0.00259808 -0.0015
-0.00283564 0.0015 -0.00259808
-0.00283564 0 -0.003
-0.00283564 -0.0015 -0.00259808
-0.00283564 -0.00259808 -0.0015
-0.00283564 -0.003 0
0.00283564 0 0
numsurf 12
SURF 0x10
mat 2
refs 4
1 0.75 1
8 0.75 0
7 0.833333 0
0 0.833333 1
SURF 0x10
mat 2
refs 4
2 0.666667 1
9 0.666667 0
8 0.75 0
1 0.75 1
SURF 0x10
mat 2
refs 4
3 0.583333 1
10 0.583333 0
9 0.666667 0
2 0.666667 1
SURF 0x10
mat 2
refs 4
4 0.5 1
11 0.5 0
10 0.583333 0
3 0.583333 1
SURF 0x10
mat 2
refs 4
5 0.416667 1
12 0.416667 0
11 0.5 0
4 0.5 1
SURF 0x10
mat 2
refs 4
6 0.333333 1
13 0.333333 0
12 0.416667 0
5 0.416667 1
SURF 0x10
mat 2
refs 3
14 0 0
1 0 0
0 0 0
SURF 0x10
mat 2
refs 3
14 0 0
2 0 0
1 0 0
SURF 0x10
mat 2
refs 3
14 0 0
3 0 0
2 0 0
SURF 0x10
mat 2
refs 3
14 0 0
4 0 0
3 0 0
SURF 0x10
mat 2
refs 3
14 0 0
5 0 0
4 0 0
SURF 0x10
mat 2
refs 3
14 0 0
6 0 0
5 0 0
kids 0
OBJECT poly
name "Face"
loc -0.001 0 0
texture "EGT.png"
crease 45.000000
numvert 10
0.000999999 -0.025 -0.025
0.000999999 -0.025 0.025
0.000999999 -9.31323e-10 0.025
0.000999999 -9.31323e-10 -0.025
-0.000999999 -9.31323e-10 -0.025
-0.000999999 -9.31323e-10 0.025
-0.000999999 -0.025 0.025
-0.000999999 -0.025 -0.025
-0.000999999 0.025 -0.025
-0.000999999 0.025 0.025
numsurf 3
SURF 0x0
mat 0
refs 4
2 0 0.245003
1 0 -0.117118
0 1 -0.117118
3 1 0.245003
SURF 0x0
mat 0
refs 4
5 0 0.214422
6 0 0
7 1 0
4 1 0.214422
SURF 0x0
mat 0
refs 4
4 1 0
8 1 1
9 0 1
5 0 0
kids 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View file

@ -0,0 +1,162 @@
<?xml version="1.0" ?>
<!--
This file is part of FlightGear, the free flight simulator
http://www.flightgear.org/
Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-->
<PropertyList>
<path>EGT.ac</path>
<params>
<value>engines/engine[0]/egt-norm</value>
<bug>engines/engine[0]/egt-bug-norm</bug>
</params>
<animation>
<type>range</type>
<min-m>0</min-m>
<max-m>10</max-m>
</animation>
<animation>
<type>material</type>
<object-name>egt</object-name>
<emission>
<red-prop>sim/model/instrument-lighting/emission/red</red-prop>
<green-prop>sim/model/instrument-lighting/emission/green</green-prop>
<blue-prop>sim/model/instrument-lighting/emission/blue</blue-prop>
<factor-prop>controls/lighting/instruments-norm</factor-prop>
</emission>
</animation>
<animation>
<type>rotate</type>
<object-name>Needle</object-name>
<property alias="../../params/value"/>
<factor>-90.0</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>-0.0015</x-m>
<y-m>0</y-m>
<z-m>-0.00766508</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>Bug</object-name>
<property alias="../../params/bug"/>
<factor>-90.0</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>-0.0015</x-m>
<y-m>0</y-m>
<z-m>-0.00766508</z-m>
</center>
</animation>
<animation>
<type>pick</type>
<object-name>Knob.Pick.L</object-name>
<visible>false</visible>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/bug"/>
<step>-0.01</step>
<min>0.0</min>
<max>1.0</max>
<wrap>0</wrap>
</binding>
</action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/bug"/>
<step>-0.1</step>
<min>0.0</min>
<max>1.0</max>
<wrap>0</wrap>
</binding>
</action>
<action>
<button>3</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/bug"/>
<step>-0.01</step>
<min>0.0</min>
<max>1.0</max>
<wrap>0</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>Knob.Pick.R</object-name>
<visible>false</visible>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/bug"/>
<step>0.01</step>
<min>0.0</min>
<max>1.0</max>
<wrap>0</wrap>
</binding>
</action>
<action>
<button>1</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/bug"/>
<step>0.1</step>
<min>0.0</min>
<max>1.0</max>
<wrap>0</wrap>
</binding>
</action>
<action>
<button>4</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property alias="../../../../params/bug"/>
<step>0.01</step>
<min>0.0</min>
<max>1.0</max>
<wrap>0</wrap>
</binding>
</action>
</animation>
</PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -172,6 +172,16 @@
</offsets>
</model>
<model>
<name>EGT</name>
<path>Aircraft/c172p/Instruments/EGT/EGT.xml</path>
<offsets>
<x-m>-0.368996</x-m>
<y-m>-0.131332</y-m>
<z-m>-0.140618</z-m>
</offsets>
</model>
<model>
<name>hi</name>
<path>Aircraft/c172p/Instruments/hi/hi.xml</path>

View file

@ -37,5 +37,22 @@
<output>instrumentation/nav[1]/filtered-gsNAV1-deflection</output>
</filter>
<filter>
<name>EGT lowpass</name>
<debug>false</debug>
<type>exponential</type>
<filter-time>4.0</filter-time>
<input>
<property>engines/engine[0]/egt-degf</property>
<!-- 300 * scale + offset = 0.0
800 * scale + offset = 1.0 -->
<scale>0.002</scale>
<offset>-0.6</offset>
</input>
<output>engines/engine[0]/egt-norm</output>
<min>0.0</min>
<max>1.0</max>
</filter>
</PropertyList>