I'm building some gauge, but when I made a variometer, which does not have a linear scale, I used the <interpolation> function in <amimation>.
This is the vario:
- Code: Select all
<animation>
<type>rotate</type>
<object-name>pointer A (Meshed)</object-name>
<property>/instrumentation/vertical-speed-indicator/indicated-speed-fpm</property>
<interpolation>
<entry><ind>-6000</ind><dep>95</dep></entry>
<entry><ind>-2500</ind><dep>180</dep></entry>
<entry><ind>0</ind><dep>270</dep></entry>
<entry><ind>2500</ind><dep>0</dep></entry>
<entry><ind>6000</ind><dep>85</dep></entry>
</interpolation>
<axis>
<x> -1 </x>
<y> 0 </y>
<z> 0 </z>
</axis>
</animation>
It only works as if I had entered positive values, it seems to ignore the negative values. How can I fix this problem?
P.S:
If I work with the classic linear function, there are no problems, everything works perfect.