FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Aircraft Design > Gauges

Gauges Use this forum for all your gauges related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 23 May 2011, 06:06
euroastar350 euroastar350 is offline
  us-delaware
Location: Newark, Delaware
Join Date: Jul 2010
Posts: 211
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>
Reply With Quote
  #2  
Old 23 May 2011, 10:35
ddawson's Avatar
ddawson ddawson is offline
  canada
Location: Ottawa, Canada
Join Date: Sep 2006
Posts: 273
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
Reply With Quote
  #3  
Old 23 May 2011, 21:35
euroastar350 euroastar350 is offline
  us-delaware
Location: Newark, Delaware
Join Date: Jul 2010
Posts: 211
All fixed and working now. Thanks Doug
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 10:50.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.