PDA

View Full Version : Linear Fuel Gauge?


Lionheart
August 24th, 2007, 13:55
Hey guys,

I am trying top make a Linear Fuel Gauge. This measures in a straight line, from bottom to top.

I have some code I am using that I adpated from stock FS for an inclenometer, (angle meter), which was written in linear fashion.

All items are labeled but the dial doesnt appear. I cant see what might be the issue.


Also, how might I change this to read percentages in a tank, instead of values of gallons? (Not on the tooltip, but on the actual measure points on the gauge XY locations).


Here is the code

Moparmike
August 24th, 2007, 15:57
Will "A:Fuel tank right main quantity, percent" work? Or possibly try "A: Fuel tank right main level, percent". I'm grabbing that second one from the gauges.h file and am not sure if it is formatted properly for XML.
Be sure to change your non-lin scale to 0-100 instead of 0-300 as well.

The only other thing I see wrong with the indicator not showing up would be that you might need to reverse your non-lin table entries. Start it with minimum at the top of the list and go to max at the bottom. I'm comparing this to the default Dehavilland_Comet oil pressure gauge XML.

Lionheart
August 24th, 2007, 16:37
Hey Mike,

Dang. I wasnt thinking to check the Dehavilland Oil gauges, lol..


Off to look at them..

Many thanks.

Bill

Lionheart
August 24th, 2007, 17:03
Man.. That did it Mike!

Cant thank you enough.

:ernae: :guinness: :ernae:

Cheers and happy flying,

Bill

Moparmike
August 27th, 2007, 13:07
Good deal! Mind if I ask which token you used for the percentage reading?
I'm slowly getting my mind to think XML...

Real Old Salt
August 28th, 2007, 09:42
Mike, with XML this works just fine;
(A:FUEL TANK CENTER LEVEL,percent)
Cheers