Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Low fuel light (Read 767 times)
Sep 12th, 2007 at 12:03am

gokhotit   Offline
Colonel
Experience is gained only
when needed

Posts: 103
*****
 
I have a low fuel light on my annunciator panel.  the problem I am having, is that it runs off of how many gallons are in the tanks, not percentage.   
   example:  I have it set to on at 20 gals remaining..good for a cessna or mooney, bad for a 737 Shocked.

Is there any way I can run it off of percentage remaining?  If so, what is the offset?  I have looked and cant find it.

PS I am running FSX


Thanx in advance.
 

The Sim Console..."outside the box", within a box http://i168.photobucket.com/albums/u185/gokhotit/th_sim.jpg
IP Logged
 
Reply #1 - Sep 12th, 2007 at 9:43am

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
gokhotit,

Have you looked in the FSUIPC For Advanced Programmers document at the listing of offsets?  I am not sure about FSX..... don;t think he has updated the list yet....... but maybe.  I am almost SURE that there are offsets for % fuel by tank up through FS2004 (at least).

If you haven't gotten to it by the time I get a chance... I'll eventually have time to find my copy of that listing and post something.

You can find the document on Pete's website.  it is a separate download from FSUIPC itself.

best,

...................john
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #2 - Sep 12th, 2007 at 4:59pm

gokhotit   Offline
Colonel
Experience is gained only
when needed

Posts: 103
*****
 
I know there is a percentage for each tank...I was hoping for a percentage in total. Is that possible?
 

The Sim Console..."outside the box", within a box http://i168.photobucket.com/albums/u185/gokhotit/th_sim.jpg
IP Logged
 
Reply #3 - Sep 13th, 2007 at 11:22am

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
gokhotit wrote on Sep 12th, 2007 at 4:59pm:
I know there is a percentage for each tank...I was hoping for a percentage in total. Is that possible?


Aha....... unless your aircraft only has a single tank... I don't think so.

You COULD change the aircraft config to have the plane have only one tank that matches the capacity of the total of all the tanks you currently have.  If you don;t mind non-realistic fuel management then that is one possible solution to having "one value" to monitor.  You'll have to alter the tank location ion the config file to the genter of the aircraft when you change it.

I THINK you are using Phidgets to drive your annunciator lights?  The upcoming new version of FS2Phidget MIGHT have some possibilities in this department to solve the problem... but we have not seen yet what Alan Dyer has come up with.

Other than that,...... I think the only other option is to write an external set of code to drive it in sonething like C++ or VB6 or whatever.

My normal aircraft has five tanks (center and two in each wing) ...and I have low annunciatitors for each one.

best,

.....................john
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #4 - Sep 13th, 2007 at 4:47pm

expat   Offline
Colonel
Deep behind enemy lines!

Gender: male
Posts: 8499
*****
 
737 fuel gauges are in LBS or KG's in the real world.  Smiley

Matt
 

PETA ... People Eating Tasty Animals.

B1 Boeing 737-800 and Dash8 Q-400
IP Logged
 
Reply #5 - Sep 14th, 2007 at 12:44am

gokhotit   Offline
Colonel
Experience is gained only
when needed

Posts: 103
*****
 
I know that when you hit SHIFT+Z in FS it comes up with the info at the top of the screen.  In that info is a fuel total %.  Is there any way to tap into whatever drives that number?
 

The Sim Console..."outside the box", within a box http://i168.photobucket.com/albums/u185/gokhotit/th_sim.jpg
IP Logged
 
Reply #6 - Sep 14th, 2007 at 11:34am

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
gokhotit,

Not that I know of.  But someone more knowledgable in the internals of the FS program itself might know a way.  But that would be some serious hacking into the main code of the program, I think.

There is one main stream of data that Microsoft programmed into the sim and that data stream is what is accessed by FSUIPC.  It contains a LOT iof information, some of which apparently is still not fully explored.  But there is apparently a lot left OUT of that stream too.  Drives us cockpit builders nuts........ and makes money for people like Project Magenta.   Wink

Many of the "tricks" that you see done to get "slick functions" out of the sim that Microsoft never intended are done EXTERNALLY to the sim itself using the FSUIPC data stream (and now SimConnect for FSX).  Software like Project Magenta that accurately emulates such systems as hydraulics (which are WOEFULLY under simulated in the default simulator) do that by creating a set of software code that takes the actions of stuff that the sim DOES provide (like maybe knowing the engine is now running) ... and builds off of that to add the missing functions in as realistic a way as possible, and then feed some of that info back into FSUIPC to be available at some offset so that other things can access it.

In your case all you need to do to solve YOUR problem is write some code that looks at the total fuel that your aircraft can carry in all of the individual tanks as a percent, adds all of them together, looks at some preselected level at which you want to turn on a light (say at 10%) and compares the two values.  If the percent level is equal to or less than that 10% value, the program needs to write a "1" or a "0" to one of FSUIPC's unused offsets that Pete Dowson made available for such uses.  THAT is the "missing piece" of stuff you likely need to do this.

The next step is handled by FS2Phidget.

Then your annunciator lighting software (FS2Phidget ?) needs to be set up to look at that offset and monitor the value.  If the value changes from the "OK" value to the "low fuel" value, it needs to then tell the hardware it is driving (Phidgets LED64 ?) to send voltage to the LED in the annunciator.

Another possible avenue here is to approch it via an XML gauge.  Do what I described above but as an invisible gauge in the aircraft's panel.  How to get the info OUT into an offset is the big question I would have in this.  But I don't know anything about XML gauge programming...so hopefully someone who does will read this and respond.

I really don't know how to do that in another manner.  Again...... maybe wait for the new release of FS2Phidget.... Alan said he is adding some conditional functions that can be stacked up.  Maybe that will allow it.

best,

.....................john
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #7 - Sep 15th, 2007 at 1:49am

gokhotit   Offline
Colonel
Experience is gained only
when needed

Posts: 103
*****
 
John, you are an FS genious if there ever was one.

Now that we have the first problem of how to get it to work, a new problem arises.

1.) I am not good at programming (gotta Love FS2Phidget [shout out to Allen! Cool])
2.) I built a generic Sim which must work with everything from teh Wright Flyer to the A380.
3.) I have a solution (I just dont have the knowledge to implement it, hence the problem).

FSInterrigate2std gives provisions for offsets that deal with indivdual tanks as a percentage within FSX.  So the idea is, you take the value of each of these tank offsets (i think there are 6), add them together, then divide by the number of tanks.  Example, If I have my left tank at 50% and the right at 25%, that would give me a total of 37.5% total.  Now, I want the light to run off the total value (37.5% value).  If the total value gets below say 15% the light comes on.  put the total value into an offset and plug that into FS2Phidget.  Easy as that. Shocked
 

The Sim Console..."outside the box", within a box http://i168.photobucket.com/albums/u185/gokhotit/th_sim.jpg
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print