Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread David Megginson
Christian Mayer writes: As I wrote before, there's a function in the WeatherCM code that calculates the air pressure based on the air pressure at a given altitude and at a given teperature profile. It is based on the well known (but incorrect) baryometric (SP?) formula but doesn't suffer

re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread David Megginson
Andy Ross writes: Nonetheless, I think I found the problem. In converting the YASim table to the new format, its values were re-encoded as deltas from sea level conditions, with sea level pressure defined as 29.92 inches of mercury. I've fixed that now -- everything is encoded as

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Christian Mayer
David Megginson wrote: Christian Mayer writes: As I wrote before, there's a function in the WeatherCM code that calculates the air pressure based on the air pressure at a given altitude and at a given teperature profile. It is based on the well known (but incorrect) baryometric

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Tony Peden
--- Christian Mayer [EMAIL PROTECTED] wrote: David Megginson wrote: Christian Mayer writes: As I wrote before, there's a function in the WeatherCM code that calculates the air pressure based on the air pressure at a given altitude and at a given teperature profile. It is

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Christian Mayer
Tony Peden wrote: PS: As the air pressure curve is similar to the e-function (e^altitude) it's nowhere linear and thus badly approximated by a table... Depends on how many points are in the table. Yes. You can solve all problems with raw iron... I don't know how feelable the sudden

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-06-05 Thread Tony Peden
On Wed, 2002-06-05 at 14:15, Christian Mayer wrote: Tony Peden wrote: PS: As the air pressure curve is similar to the e-function (e^altitude) it's nowhere linear and thus badly approximated by a table... Depends on how many points are in the table. Yes. You can solve all

re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread David Megginson
Andy Ross writes: Nonetheless, I think I found the problem. In converting the YASim table to the new format, its values were re-encoded as deltas from sea level conditions, with sea level pressure defined as 29.92 inches of mercury. But in the FGEnvironment constructor, I see the

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread Andy Ross
David Megginson wrote: The idea is that users should be able to set any reasonable sea-level pressure and see reasonable behaviour -- that's why I set the tables up with deltas rather than absolute values. I can see, now, how that would be a problem at higher altitudes, but what should we

Re: [Flightgear-devel] Pressure errors in FGEnvironment

2002-05-31 Thread Christian Mayer
Andy Ross wrote: David Megginson wrote: The idea is that users should be able to set any reasonable sea-level pressure and see reasonable behaviour -- that's why I set the tables up with deltas rather than absolute values. I can see, now, how that would be a problem at higher

[Flightgear-devel] Pressure errors in FGEnvironment

2002-05-30 Thread Andy Ross
I wrote: First, the air pressures returned from the environment system don't agree with the standard atmosphere that YASim uses to do its calibration Heh, funny that. The new environment manager *is* using YASim's numbers. :) Nonetheless, I think I found the problem. In converting the