Re: [Flightgear-devel] how to find remaining fuel

2005-02-28 Thread Andy Ross
Seamus Thomas Carroll wrote: The fuel levels seem to retrieve correctly. I then added the following code to set the fuel levels for when the c172 aircraft starts: fgSetDouble( /consumables/fuel/tank[0]/level-gal_us, tank1 ); fgSetDouble( /consumables/fuel/tank[1]/level-gal_us, tank2 ); The

Re: [Flightgear-devel] how to find remaining fuel

2005-02-28 Thread Seamus Thomas Carroll
Hi, I seemed to have had a feature in my code that caused the tanks to be filled making me think that the tanks were increasing in fuel. The code seems to work correctly now. Thanks, Seamus On Mon, 28 Feb 2005, Andy Ross wrote: Seamus Thomas Carroll wrote: The fuel levels seem to retrieve

Re: [Flightgear-devel] how to find remaining fuel

2005-02-26 Thread Seamus Thomas Carroll
Hi, I am using the following piece of code to read the fuel levels: double fueln = 0; // get the fuel levels; for( int count = 0; count 7; count++ ) { string tank = /consumables/fuel/tank[+ su-intTostring(count)+]/level-gal_us; cout setprecision(6) tank count :

RE: [Flightgear-devel] how to find remaining fuel

2005-02-04 Thread Innis Cunningham
Hi Jon Hope this is concise enough. There is no total fuel onboard property as far as I am aware. In other words there is nothing that adds the contents of each tank to give a total fuel property. All that is needed is something that adds the total of all the tanks and outputs it as a property.Now

RE: [Flightgear-devel] how to find remaining fuel

2005-02-04 Thread Jon Berndt
Jon S. Berndt wrote: I haven't been following this thread very closely. Can someone concisely recap what is wanted, here? It's most likely a very simple addition for us if it's something we don't now model. Actually, YASim uses a Nasal-based fuel system that was designed to be

Re: [Flightgear-devel] how to find remaining fuel

2005-02-04 Thread Andy Ross
Jon S. Berndt wrote: This is good for YASim. However, the Nasal approach won't apply for other applications which use JSBSim, and JSBSim also needs its own fuel management for batch runs (standalone operation) outside of FlightGear. Well, it's certainly fgfs-specific, although there's really

RE: [Flightgear-devel] how to find remaining fuel

2005-02-04 Thread Jon Berndt
With JSBSim, you could write a property interface manager for these guys that replaces the internal internal fuel/weight managers you have right now. If you wanted, you could actually write property listeners to override the current property nodes and wire their get/set operations directly

Re: [Flightgear-devel] how to find remaining fuel

2005-02-04 Thread Andy Ross
I found time this afternoon to refresh my memory about how the fuel stuff works. The FDM reads these properties to determine the amount of fuel in each tank. YASim uses this only for computing the inertia tensor and total aircraft mass, it doesn't care about fuel per se.

RE: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Vivian Meazza
Seamus Thomas Carroll Hi, If i was able to find the avialable fuel property i could work out a kmperlitre based on distance travelled and fuel consumed over a period of time. Doesnt a plane run out of fuel after a period of time? I tried grepping for fuel and the word fuel must have

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Erik Hofman
Innis Cunningham wrote: Hi Seamus Seamus Thomas Carroll writes Hi, I am trying to find the variable that contains the remaining fuel on a plane. I dont think there is a total fuel onboard or fuel remaining property. I asked about this a couple of weeks back and got no reply(I think). After a

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Innis Cunningham
Hi All Erik Hofman writes I dont think there is a total fuel onboard or fuel remaining property. I asked about this a couple of weeks back and got no reply(I think). After a quick search in the code I found this property: /consumables/fuel/tank[0]/level-gal_us Yep but that gives the total in tank

RE: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Vivian Meazza
Innis wrote Hi All Erik Hofman writes I dont think there is a total fuel onboard or fuel remaining property. I asked about this a couple of weeks back and got no reply(I think). After a quick search in the code I found this property: /consumables/fuel/tank[0]/level-gal_us Yep but

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Lee Elliott
On Thursday 03 February 2005 21:13, Vivian Meazza wrote: Innis wrote Hi All Erik Hofman writes I dont think there is a total fuel onboard or fuel remaining property. I asked about this a couple of weeks back and got no reply(I think). After a quick search in the code I

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Innis Cunningham
Lee Elliott writes /consumables/fuel/total-fuel-norm gives the total remaining fuel, normalised to 0-1. Hmm.Dont know that this is available under jsbsim. LeeE Cheers Innis ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Seamus Thomas Carroll
I have been using the c172 aircraft. Is it controlled by jsbsim or ysim? Thanks, Seamus On Fri, 4 Feb 2005, Innis Cunningham wrote: Lee Elliott writes /consumables/fuel/total-fuel-norm gives the total remaining fuel, normalised to 0-1. Hmm.Dont know that this is available under jsbsim. LeeE

RE: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Jon Berndt
I have been using the c172 aircraft. Is it controlled by jsbsim or ysim? Thanks, Seamus I vaguely recall hearing that there is a C-172 for each of those two FDMs. If you are refrring to the default c172, that's _probably_ the JSBSim one. I haven't been following this thread very closely.

Re: [Flightgear-devel] how to find remaining fuel

2005-02-03 Thread Andy Ross
Jon S. Berndt wrote: I haven't been following this thread very closely. Can someone concisely recap what is wanted, here? It's most likely a very simple addition for us if it's something we don't now model. Actually, YASim uses a Nasal-based fuel system that was designed to be FDM-independent.

RE: [Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Innis Cunningham
Hi Seamus Seamus Thomas Carroll writes Hi, I am trying to find the variable that contains the remaining fuel on a plane. I dont think there is a total fuel onboard or fuel remaining property. I asked about this a couple of weeks back and got no reply(I think). Also, is there a variable that

Re: [Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Andy Ross
Innis Cunningham wrote: I dont think there is a total fuel onboard or fuel remaining property. I asked about this a couple of weeks back and got no reply(I think). Each tank has its own value, under /consumables/fuel/tank[n] you will find level-gal_us and level-lbs properties. I don't think

RE: [Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Seamus Thomas Carroll
Hi, If i was able to find the avialable fuel property i could work out a kmperlitre based on distance travelled and fuel consumed over a period of time. Doesnt a plane run out of fuel after a period of time? I tried grepping for fuel and the word fuel must have shown up 100 times and none

RE: [Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Innis Cunningham
Seamus Thomas Carroll writes Doesnt a plane run out of fuel after a period of time? Yep.But it depends on winds.If you are flying at 80knots into a 80knot headwind you are going nowhere.But if you are flying at 80knots with an 80knot tail wind then your ground speed is 160knots. This is why

Re: [Flightgear-devel] how to find remaining fuel

2005-02-02 Thread Martin Spott
Innis Cunningham wrote: Seamus Thomas Carroll writes Doesnt a plane run out of fuel after a period of time? Yes, but not to ease life too much, pilots typically calculate the fuel consuption of their aircraft in a different way: They know the fuel consumption of the engine at a certain