57
edits
No edit summary |
m (follow my own advice) |
||
Line 36: | Line 36: | ||
<pre> | <pre> | ||
<animation> | |||
<type>rotate</type> | |||
<object-name>needle</object-name> | |||
</pre> | </pre> | ||
Line 49: | Line 49: | ||
So, the next line in our XML file will specify the property to use; | So, the next line in our XML file will specify the property to use; | ||
<property>engines/engine/egt_degf</property> | |||
Next we need to specify exactly how much that property moves the needle. There are several ways to do this, but we'll use a simple interpolation table since these are especially useful in more complicated situations. The ITT gauge is marked from 0 degC to 1200 degC; since we're having to use a value that's reported in degF for now, we'll just convert those two values. 0 degC is about 32 degF and 1200 degC is about 2192 degF. Two handy tips here; for Linux/unix users, the "units" program is truly invaluable; for everyone, google has a useful units converter; for example search for " | Next we need to specify exactly how much that property moves the needle. There are several ways to do this, but we'll use a simple interpolation table since these are especially useful in more complicated situations. The ITT gauge is marked from 0 degC to 1200 degC; since we're having to use a value that's reported in degF for now, we'll just convert those two values. 0 degC is about 32 degF and 1200 degC is about 2192 degF. Two handy tips here; for Linux/unix users, the "units" program is truly invaluable; for everyone, google has a useful units converter; for example search for " | ||
Line 57: | Line 57: | ||
<pre> | <pre> | ||
<interpolation> | |||
<entry><ind>32</ind><dep>0</dep></entry> | |||
<entry><ind>2192</ind><dep>230</dep></entry> | |||
</interpolation> | |||
</pre> | </pre> | ||
Line 72: | Line 72: | ||
<pre> | <pre> | ||
<center> | |||
<x-m>0</x-m> | |||
<y-m>0</y-m> | |||
<z-m>0</z-m> | |||
</center> | |||
</pre> | </pre> | ||
Line 82: | Line 82: | ||
<pre> | <pre> | ||
<axis> | |||
<x>-1</x> | |||
<y>0</y> | |||
<z>0</z> | |||
</axis> | |||
</pre> | </pre> | ||
Line 93: | Line 93: | ||
That concludes the rotation animation and so (as always) we need to add a suitable closing tag; | That concludes the rotation animation and so (as always) we need to add a suitable closing tag; | ||
<pre> | |||
</animation> | |||
</pre> | |||
'''Digital display:''' | '''Digital display:''' |
edits