[Flightgear-devel] ..GL_EXT_geometry_shader4 in install/fgfs/fgdata/Effects/landmass.eff ?

2011-01-29 Thread Arnt Karlsen
Hi,

..arnt@celsius:~/FG-git$ grep supported \ 
install/fgfs/fgdata/Effects/* |cut -d":" -f2 \
|tr -d [:blank:] |cut -d">" -f2 |cut -d"<" -f1 |sort |uniq 
GL_ARB_fragment_shader 
GL_ARB_shader_objects
GL_ARB_shading_language_100
GL_ARB_vertex_shader
GL_EXT_geometry_shader4
arnt@celsius:~/FG-git$ 

arnt@celsius:~/FG-git$ for g in $(grep supported \
install/fgfs/fgdata/Effects/* |cut -d":" -f2 |tr -d [:blank:] |cut \
-d">" -f2 |cut -d"<" -f1 |sort |uniq ) ;do glxinfo |grep $g ;done
GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_shader_objects, GL_ARB_shading_language_100, GL_ARB_shadow,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program,
GL_ARB_vertex_shader, 
arnt@celsius:~/FG-git$ 

..the one thing missing is: 
arnt@celsius:~/FG-git$ grep GL_EXT_geometry_shader4 \
install/fgfs/fgdata/Effects/*
install/fgfs/fgdata/Effects/landmass.eff:
GL_EXT_geometry_shader4
arnt@celsius:~/FG-git$ 

..is Nvidia's GL_EXT_geometry_shader4 being offered as an 
alternative to the other 4 shaders?
http://damien.porquet.free.fr/msi/glexts/GL_EXT_geometry_shader4.txt.html
http://developer.download.nvidia.com/opengl/specs/GL_EXT_geometry_shader4.txt
http://code.google.com/p/glextensions/wiki/GL_EXT_geometry_shader4
http://www.opengl.org/registry/#arbextspecs

..commenting it out did not wash off any tar off of the 737-100, and:
r300: ERROR: FS input generic 17 unassigned, not enough hardware slots.
r300: ERROR: FS input generic 17 unassigned, not enough hardware slots.
r300: ERROR: FS input generic 19 unassigned, not enough hardware slots.
r300: ERROR: FS input generic 20 unassigned, not enough hardware slots.
r300: ERROR: FS input generic 21 unassigned, not enough hardware slots.
r300: ERROR: FS input generic 22 unassigned, not enough hardware slots.
r300: ERROR: FS input generic 23 unassigned, not enough hardware slots.


-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] [FlightGear-devel] Hudson build artifact not pointing to 2.2.0 ?

2011-01-29 Thread Tom P
Hi,

I was going to test 2.2.0 release candidate on Windows, so proceeded to
download the following:
http://flightgear.simpits.org:8080/job/Win32-installer/lastSuccessfulBuild/artifact/fgfs_win32_nightly_2.2.0.exe

The program installed is not a 2.2.0 but a 2.0.0.
Did I download the wrong one, even if it's marked 2.2.0 ?

Thanks,

  Tom
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] ..what _is_ this view, a Nasal three-letter word?: "bug" is a three-letter word

2011-01-29 Thread Arnt Karlsen
On Sat, 29 Jan 2011 23:27:39 +0100, Csaba wrote in message 
:

> On Sat, Jan 29, 2011 at 9:37 PM, Arnt Karlsen  wrote:
> > On Sat, 29 Jan 2011 02:15:41 +0100, Arnt wrote in message
> > <20110129021541.0d04cd1b@celsius.local>:
> >
> >> ..and, what _is_ this view?
> >> https://github.com/gasguru/flightgearthings/raw/master/ATI-nite_warriors/radeon-fgfs-screen-002.png
> >
> > ..found this wee snippet in my now context-trimmed console output:
> > Nasal runtime error: non-objects have no members
> >  at /home/arnt/FG-git/install/fgfs/bin/../fgdata//Nasal/view.nas,
> > line 110 called from: /input/keyboard/key[118]/binding, line 1
> >
> > ..line 110 is a comment, that shouldn't call a view?
> > arnt@celsius:~/FG-git$ nl install/fgfs/fgdata/Nasal/view.nas |less
> > ...
> > 109  ##
> > 110  # Standard view "slew" rate, in degrees/sec.
> > 111  #
> > 112  var VIEW_PAN_RATE = 60;
> 
> User error. "nl" does not count empty lines by default, but nasal
> does. In any case, "less" is perfectly capable of displaying line
> numbers:
> 
> $ less -N view.nas
> ...
> 108 # And pop up a nice reminder
> 109 var popup=getprop("/sim/view-name-popup");
> 110 if(popup == 1 or popup==nil)
> gui.popupTip(views[n].getNode("name").getValue());

..duh!  The other ones didn't show me the line #'s, so I piped nl.  
 
> So, presumably you have encountered a view that doesn't have a name.


..yup, the big question in what did I do (I didn't!!!) to 
deserve that.  Other than .fgfsrc playing games?, 737-100
came up with the Swissair livery under the tar camo job,
yahooing around with turpentine vapors in 
install/fgfs/fgdata/Aircraft/737-100/Models/Liveries/default.xml
did nothing to the tar on the default Lufthansa paint job,
then I tried grep ARB_  install/fgfs/fgdata/Effects/*
which warrants a new thread. ;o)

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] ..what _is_ this view, a Nasal three-letter word?: "bug" is a three-letter word

2011-01-29 Thread Csaba Halász
On Sat, Jan 29, 2011 at 9:37 PM, Arnt Karlsen  wrote:
> On Sat, 29 Jan 2011 02:15:41 +0100, Arnt wrote in message
> <20110129021541.0d04cd1b@celsius.local>:
>
>> ..and, what _is_ this view?
>> https://github.com/gasguru/flightgearthings/raw/master/ATI-nite_warriors/radeon-fgfs-screen-002.png
>
> ..found this wee snippet in my now context-trimmed console output:
> Nasal runtime error: non-objects have no members
>  at /home/arnt/FG-git/install/fgfs/bin/../fgdata//Nasal/view.nas, line
> 110 called from: /input/keyboard/key[118]/binding, line 1
>
> ..line 110 is a comment, that shouldn't call a view?
> arnt@celsius:~/FG-git$ nl install/fgfs/fgdata/Nasal/view.nas |less
> ...
> 109  ##
> 110  # Standard view "slew" rate, in degrees/sec.
> 111  #
> 112  var VIEW_PAN_RATE = 60;

User error. "nl" does not count empty lines by default, but nasal
does. In any case, "less" is perfectly capable of displaying line
numbers:

$ less -N view.nas
...
108 # And pop up a nice reminder
109 var popup=getprop("/sim/view-name-popup");
110 if(popup == 1 or popup==nil)
gui.popupTip(views[n].getNode("name").getValue());

So, presumably you have encountered a view that doesn't have a name.

-- 
Csaba/Jester

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] ..what _is_ this view, a Nasal three-letter word?: "bug" is a three-letter word

2011-01-29 Thread Arnt Karlsen
On Sat, 29 Jan 2011 02:15:41 +0100, Arnt wrote in message 
<20110129021541.0d04cd1b@celsius.local>:

> ..and, what _is_ this view?
> https://github.com/gasguru/flightgearthings/raw/master/ATI-nite_warriors/radeon-fgfs-screen-002.png
 
..found this wee snippet in my now context-trimmed console output:
Nasal runtime error: non-objects have no members
  at /home/arnt/FG-git/install/fgfs/bin/../fgdata//Nasal/view.nas, line
110 called from: /input/keyboard/key[118]/binding, line 1

..the background color of this appears to depend on the local time 
at either KSFO or wherever you point FG with " --airport=".

..line 110 is a comment, that shouldn't call a view?
arnt@celsius:~/FG-git$ nl install/fgfs/fgdata/Nasal/view.nas |less
...
109  ##
110  # Standard view "slew" rate, in degrees/sec.
111  #
112  var VIEW_PAN_RATE = 60;
  

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] "bug" is a three-letter word

2011-01-29 Thread Arnt Karlsen
 On Sat, 29 Jan 2011 08:41:38 +, Stuart wrote in message 
<2866262b-d56d-495b-b287-4b5f5aec4...@gmail.com>:

> On 29 Jan 2011, at 01:30, Arnt Karlsen wrote:
> > ..found this wee snippet in my console output:
> > r300: ERROR: FS input generic 17 unassigned, not enough hardware
> > slots.

..er, that was the snippet context in my output... 
but thanks for the interpretion. ;o) 

> Well, that might explain some if the shader problems you are seeing. 
> 
> My guess is that "FS" stands for Fragment Shader and your graphics
> card "only" has support for 16 generic input variables, while the
> shader is trying to assign a 17th. Behaviour in that case is
> undefined but it looks like your card is trying to execute the shader
> anyway. 
> 
> Just a guess though. 

..ok, the best guess this far, how do I check these shader 
variables?

..I know I'm important to myself, but that shouldn't convince 
Google this forked thread is 4'th most important thing that 
ever happened in the history of GPGPU programming. ;o)

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Incorrect conversion used for lbs to gallon of fuel

2011-01-29 Thread Ron Jensen
On Saturday 29 January 2011 07:36:54 Bertrand Coconnier wrote:
> 2011/1/28 Hal V. Engel :
> > A thread was opened on the forum about how the C172P appeared to be
> > incorrectly calculating the amount of fuel in gallons based on the weight
> > of the fuel.  It appears that the conversion is using 6.6 lbs/gal when it
> > should be using something close to 6.0.  That is
> >
> > /fdm/jsbsim/propulsion/tank[n]/contents-lbs divided by
> > /consumables/fuel/tank[n]/level-us_gal == 6.6
> >
> > I also had an issue with this for the p51d-jsbsim model and I had to use
> > 6.6 as the conversion factor when setting up the fuel tanks in order to
> > get /consumables/fuel/tank[n]/level-us_gal to report the correct amount
> > of fuel. What is really strange is that
> > /consumables/fuel/tank[n]/density-ppg = 6.0. Is this a bug or is there
> > some other issue that aircraft developers need to be aware of to get this
> > to work correctly?
> >
> > Hal
>
> Hi Hal,
>
> This is somehow a bug since the fuel density is hardcoded to 6.6
> lbs/gal in src/FDM/JSBSim/JSBSim.cxx. Enclosed patch reads the fuel
> density from JSBSim to make conversion between volume and density.
>
> Note that JSBSim allows different sort of fuel density to be used (see
> JSBSim reference manual chapter 3.1.7.1 pp. 39-40). Most of the fuels
> seem to be around 6.6 lbs/gal with the notable exception of AVGAS and
> HYDRAZINE.
>
> Cheers,
>
> Bertrand.

+  double fuelDensity = Propulsion->GetTank(i)->GetDensity();

( ... )

+ Propulsion->GetTank(i)->GetContents() / fuelDensity);


Should we guard against GetDensity() returning 0?

Thanks,
Ron

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Incorrect conversion used for lbs to gallon of fuel

2011-01-29 Thread Bertrand Coconnier
A better improved patch that supersedes the previous FuelDensity.diff
I sent to this list.
This one takes /consumables/fuel/tank[n]/density-ppg into account in the calcs.

Cheers,

Bertrand.

2011/1/29 Bertrand Coconnier :
> 2011/1/28 Hal V. Engel :
>> A thread was opened on the forum about how the C172P appeared to be
>> incorrectly calculating the amount of fuel in gallons based on the weight of
>> the fuel.  It appears that the conversion is using 6.6 lbs/gal when it should
>> be using something close to 6.0.  That is
>>
>> /fdm/jsbsim/propulsion/tank[n]/contents-lbs divided by
>> /consumables/fuel/tank[n]/level-us_gal == 6.6
>>
>> I also had an issue with this for the p51d-jsbsim model and I had to use 6.6
>> as the conversion factor when setting up the fuel tanks in order to get
>> /consumables/fuel/tank[n]/level-us_gal to report the correct amount of fuel.
>> What is really strange is that /consumables/fuel/tank[n]/density-ppg = 6.0.
>> Is this a bug or is there some other issue that aircraft developers need to 
>> be
>> aware of to get this to work correctly?
>>
>> Hal
>>
>
> Hi Hal,
>
> This is somehow a bug since the fuel density is hardcoded to 6.6
> lbs/gal in src/FDM/JSBSim/JSBSim.cxx. Enclosed patch reads the fuel
> density from JSBSim to make conversion between volume and density.
>
> Note that JSBSim allows different sort of fuel density to be used (see
> JSBSim reference manual chapter 3.1.7.1 pp. 39-40). Most of the fuels
> seem to be around 6.6 lbs/gal with the notable exception of AVGAS and
> HYDRAZINE.
>
> Cheers,
>
> Bertrand.
>
diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx
index f802c8c..fc09b0b 100644
--- a/src/FDM/JSBSim/JSBSim.cxx
+++ b/src/FDM/JSBSim/JSBSim.cxx
@@ -215,14 +213,25 @@ FGJSBsim::FGJSBsim( double dt )
 // Set initial fuel levels if provided.
 for (unsigned int i = 0; i < Propulsion->GetNumTanks(); i++) {
   SGPropertyNode * node = fgGetNode("/consumables/fuel/tank", i, true);
+  FGTank* tank = Propulsion->GetTank(i);
+  double fuelDensity;
+
+  if (node->getChild("density-ppg", 0, false) != 0) {
+fuelDensity = node->getDoubleValue("density-ppg");
+tank->SetDensity(fuelDensity);
+  }
+  else {
+fuelDensity = tank->GetDensity();
+node->setDoubleValue("density-ppg", fuelDensity);
+  }
+
   if (node->getChild("level-gal_us", 0, false) != 0) {
-Propulsion->GetTank(i)->SetContents(node->getDoubleValue("level-gal_us") * 6.6);
+tank->SetContents(node->getDoubleValue("level-gal_us") * fuelDensity);
   } else {
-node->setDoubleValue("level-lbs", Propulsion->GetTank(i)->GetContents());
-node->setDoubleValue("level-gal_us", Propulsion->GetTank(i)->GetContents() / 6.6);
+node->setDoubleValue("level-lbs", tank->GetContents());
+node->setDoubleValue("level-gal_us", tank->GetContents() / fuelDensity);
   }
-  node->setDoubleValue("capacity-gal_us",
-   Propulsion->GetTank(i)->GetCapacity() / 6.6);
+  node->setDoubleValue("capacity-gal_us", tank->GetCapacity() / fuelDensity);
 }
 Propulsion->SetFuelFreeze((fgGetNode("/sim/freeze/fuel",true))->getBoolValue());
 
@@ -670,7 +706,9 @@ bool FGJSBsim::copy_to_JSBsim()
 for (i = 0; i < Propulsion->GetNumTanks(); i++) {
   SGPropertyNode * node = fgGetNode("/consumables/fuel/tank", i, true);
   FGTank * tank = Propulsion->GetTank(i);
-  tank->SetContents(node->getDoubleValue("level-gal_us") * 6.6);
+  double fuelDensity = node->getDoubleValue("density-ppg");
+  tank->SetDensity(fuelDensity);
+  tank->SetContents(node->getDoubleValue("level-gal_us") * fuelDensity);
 //   tank->SetContents(node->getDoubleValue("level-lbs"));
 }
 
@@ -909,7 +947,9 @@ bool FGJSBsim::copy_from_JSBsim()
 FGTank* tank = Propulsion->GetTank(i);
 double contents = tank->GetContents();
 double temp = tank->GetTemperature_degC();
-node->setDoubleValue("level-gal_us", contents/6.6);
+double fuelDensity = tank->GetDensity();
+node->setDoubleValue("density-ppg" , fuelDensity);
+node->setDoubleValue("level-gal_us", contents/fuelDensity);
 node->setDoubleValue("level-lbs", contents);
 if (temp != -.0) node->setDoubleValue("temperature_degC", temp);
   }

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reload joystick config

2011-01-29 Thread James Turner

On 28 Jan 2011, at 09:02, James Turner wrote:

> Looks good to me, from a visual inspection. I'll apply over the weekend, and 
> poke some people to test. Depending on when 2.2.0 happens this might even be 
> worth back-porting, but we should wait for some positive testing feedback 
> before that.

This is in 'next' now, and works well for me  here - if some other people could 
test (on Windows and Linux), then I'll merge this to 2.2.0 assuming the 
responses are positive.

Thanks Andreas!
James


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Incorrect conversion used for lbs to gallon of fuel

2011-01-29 Thread Bertrand Coconnier
2011/1/28 Hal V. Engel :
> A thread was opened on the forum about how the C172P appeared to be
> incorrectly calculating the amount of fuel in gallons based on the weight of
> the fuel.  It appears that the conversion is using 6.6 lbs/gal when it should
> be using something close to 6.0.  That is
>
> /fdm/jsbsim/propulsion/tank[n]/contents-lbs divided by
> /consumables/fuel/tank[n]/level-us_gal == 6.6
>
> I also had an issue with this for the p51d-jsbsim model and I had to use 6.6
> as the conversion factor when setting up the fuel tanks in order to get
> /consumables/fuel/tank[n]/level-us_gal to report the correct amount of fuel.
> What is really strange is that /consumables/fuel/tank[n]/density-ppg = 6.0.
> Is this a bug or is there some other issue that aircraft developers need to be
> aware of to get this to work correctly?
>
> Hal
>

Hi Hal,

This is somehow a bug since the fuel density is hardcoded to 6.6
lbs/gal in src/FDM/JSBSim/JSBSim.cxx. Enclosed patch reads the fuel
density from JSBSim to make conversion between volume and density.

Note that JSBSim allows different sort of fuel density to be used (see
JSBSim reference manual chapter 3.1.7.1 pp. 39-40). Most of the fuels
seem to be around 6.6 lbs/gal with the notable exception of AVGAS and
HYDRAZINE.

Cheers,

Bertrand.
diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx
index f802c8c..c752e5e 100644
--- a/src/FDM/JSBSim/JSBSim.cxx
+++ b/src/FDM/JSBSim/JSBSim.cxx
@@ -215,14 +213,15 @@ FGJSBsim::FGJSBsim( double dt )
 // Set initial fuel levels if provided.
 for (unsigned int i = 0; i < Propulsion->GetNumTanks(); i++) {
   SGPropertyNode * node = fgGetNode("/consumables/fuel/tank", i, true);
+  double fuelDensity = Propulsion->GetTank(i)->GetDensity();
   if (node->getChild("level-gal_us", 0, false) != 0) {
-Propulsion->GetTank(i)->SetContents(node->getDoubleValue("level-gal_us") * 6.6);
+Propulsion->GetTank(i)->SetContents(node->getDoubleValue("level-gal_us") * fuelDensity);
   } else {
 node->setDoubleValue("level-lbs", Propulsion->GetTank(i)->GetContents());
-node->setDoubleValue("level-gal_us", Propulsion->GetTank(i)->GetContents() / 6.6);
+node->setDoubleValue("level-gal_us", Propulsion->GetTank(i)->GetContents() / fuelDensity);
   }
   node->setDoubleValue("capacity-gal_us",
-   Propulsion->GetTank(i)->GetCapacity() / 6.6);
+   Propulsion->GetTank(i)->GetCapacity() / fuelDensity);
 }
 Propulsion->SetFuelFreeze((fgGetNode("/sim/freeze/fuel",true))->getBoolValue());
 
@@ -670,7 +696,7 @@ bool FGJSBsim::copy_to_JSBsim()
 for (i = 0; i < Propulsion->GetNumTanks(); i++) {
   SGPropertyNode * node = fgGetNode("/consumables/fuel/tank", i, true);
   FGTank * tank = Propulsion->GetTank(i);
-  tank->SetContents(node->getDoubleValue("level-gal_us") * 6.6);
+  tank->SetContents(node->getDoubleValue("level-gal_us") * Propulsion->GetTank(i)->GetDensity());
 //   tank->SetContents(node->getDoubleValue("level-lbs"));
 }
 

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] "bug" is a three-letter word

2011-01-29 Thread Stuart Buchanan
On 29 Jan 2011, at 01:30, Arnt Karlsen wrote:
> ..found this wee snippet in my console output:
> r300: ERROR: FS input generic 17 unassigned, not enough hardware slots.

Well, that might explain some if the shader problems you are seeing. 

My guess is that "FS" stands for Fragment Shader and your graphics card "only" 
has support for 16 generic input variables, while the shader is trying to 
assign a 17th. Behaviour in that case is undefined but it looks like your card 
is trying to execute the shader anyway. 

Just a guess though. 

-Stuart 
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel