![]() |
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| Gauges Use this forum for all your gauges related discussions |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Dual needle fuel gauge
Hi guys,
I am finalizing the next gauge in my Bell 222 helicopter and its a dual needle fuel quantity gauge. I have the axis and position set properly....but for the life of me, I can't get the right needle to move the way I want to....meaning that the right needle moves the same way as the left. Here is the code I am working with. Any help is appreciated. Left needle is the one on top for reference. Code:
<Gauge Name="Fuel Quantity" Version="1.0">
<Copyright>Copyright 2010-2011 Eagle Rotorcraft Simulations</Copyright>
<Size X="256" Y="256"/>
<Image Name="Fuel.bmp" Luminous="Yes"/>
<Element>
<Position X="100" Y="128"/>
<Image Name="Fuel_Needle.bmp" PointsTo="West">
<Axis X="5" Y="5"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="94">(A:FUEL TANK CENTER3 QUANTITY, gallons)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<GAUGE_FUEL_INDICATORS Action="Freeze"/>
</Failures>
<Nonlinearity>
<Item Value="0" Degrees="-60"/>
<Item Value="100" Degrees="80"/>
</Nonlinearity>
<Delay DegreesPerSecond="100"/>
</Rotate>
</Element>
<Element>
<Position X="140" Y="128"/>
<Image Name="Fuel_Needle.bmp" PointsTo="West">
<Axis X="5" Y="5"/>
</Image>
<Rotate>
<Value Minimum="0" Maximum="94">(A:FUEL TANK CENTER3 QUANTITY, gallons)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
<GAUGE_FUEL_INDICATORS Action="Freeze"/>
</Failures>
<Nonlinearity>
<Item Value="0" Degrees="-120"/>
<Item Value="100" Degrees="110"/>
</Nonlinearity>
<Delay DegreesPerSecond="100"/>
</Rotate>
</Element>
<Element>
<Position X="110" Y="130"/>
<Image Name="FUEL_needle_cover.bmp">
<Axis X="10" Y="10" PointsTo="North"/>
</Image>
</Element>
<Mouse>
<Tooltip>Fuel Quantity(%((A:FUEL TANK CENTER3 QUANTITY, gallons))%!2.1f! gallons)</Tooltip>
</Mouse>
</Gauge>
|
|
#2
|
||||
|
||||
|
Non-linearity tables, as read from top to bottom, must always describe clockwise motion, even if the natural motion of the needle is counter-clockwise.
Doug |
|
#3
|
|||
|
|||
|
All fixed and working now. Thanks Doug
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XML Fuel Gauge for C-17 Globemaster | tgycgijoes | Gauges | 3 | 19 Jun 2011 14:48 |
| XML Fuel Gauge | flynby | Project recruiting | 2 | 07 Mar 2011 16:09 |
| XML Fuel Gauge | flynby | Gauges | 0 | 05 Mar 2011 12:25 |
| fuel still flowing when engines off?!?! | TheMegaTop | General chat | 0 | 10 Jan 2009 13:25 |
| VC gauge 3D needle animation smoothness | B21 | Modeling | 6 | 19 Sep 2008 20:23 |