Jump to content
Sign in to follow this  
Guest zerocinco

Fuel Gauge

Recommended Posts

Guest zerocinco

I want this gauge to run from Full to Empty. I could use a shortcut to understanding what is reacting to what.

 

Picture 1 is Full

Picture 2 is Empty

 

Cockpit INI says:

 

[internalFuelGauge]

Type=INETERNAL_FUEL_QUANTITY_INDICATOR

NodeName=needle_fuel01

MovementType=ROTATION_Z

ValueUnit=LB

Set[01].Position=170.0

Set[01].Value=0.0

Set[02].Position=-170.0

Set[02].Value=9560.0

 

Data INI says:

 

[FuelCell]

SystemType=FUEL_TANK

FuelTankID=1

MaxFuelAmount=2762.00 <<pounds? liters? gallons?

 

How do I set this up where it goes almost right?

Share this post


Link to post
Share on other sites

[internalFuelGauge]

Type=INETERNAL_FUEL_QUANTITY_INDICATOR

NodeName=needle_fuel01

MovementType=ROTATION_Z

ValueUnit=LB

Set[01].Position=170.0 <------position of the needle in degree, you have to finf out where's the needles "0" point, that is where it is build so you can get the right +- degrees

Set[01].Value=0.0 <-- --- LB,

Set[02].Position=-170.0

Set[02].Value=9560.0

 

Data INI says:

 

[FuelCell]

SystemType=FUEL_TANK

FuelTankID=1

MaxFuelAmount=2762.00 <<pounds? liters? gallons?

 

<--- in the data ini all values are metrical, fuel is in kilograms

 

to fix the gauge, use

Set[01].Position=0.0 <--

Set[01].Value=0.0 <--

and temporarily deactivate set2

//Set[02].Position=-170.0

//Set[02].Value=9560.0

 

fly, and take a screenshot

 

then, from the now visible "0" position of the fuel needle get the position of the full and empty marks on the gauge and put them in the ini for the positions, Set[01].Position= is the empty mark

 

for the value's convert the max. fuel amount (the 2762 or whatever) into pounds and put it in as Set[02].Value= xxxxx

Share this post


Link to post
Share on other sites
Guest zerocinco

AAHHH. (Picture of me slapping forehead...again.)

 

Thanks for helping me find Zero.

 

Your other info needs to be reversed if you want the gauge to run backward.

Edited by zerocinco

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..