Erik Hofman wrote:
> It's way more extreme than that, the dewpoint once in a while seems to
> reset to -2.8308 from it's current value causing the humidity to jump
> way beyond 100% (I've seen 1200%). I could limit the humidity to 100%
> but that only hides the problem.
>
> I did not find why the dewpoint varies that much.
>
> Erik
>
>
I have made a log in function _recalc_alt_dewpoint() with the last
environment.cxx from CVS (rev 1.31).
Here is written at level flight:
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-2.8308 temperature_degc is -2.8308
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-2.8308 temperature_degc is -2.8308
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
step to _recalc_alt_dewpoint () elevation_ft is 41981.8 dewpoint_degc is
-56.5 temperature_degc is -56.5
So problem is in the value of temperature_degc.
It seems to be a couple of errors connected with environment.
1) File: fg_commands.cxx, routine: static bool
do_set_dewpoint_sea_level_degc (const SGPropertyNode * arg)
variable dewpoint_sea_level_degc is defined as
double dewpoint_sea_level_degc =
arg->getDoubleValue("dewpoint-degc", 5.0);
may be correct is:
double dewpoint_sea_level_degc =
arg->getDoubleValue("dewpoint-sea-level-degc", 5.0);
2) File: environment.cxx, routine: void interpolate (const FGEnvironment
* env1, const FGEnvironment * env2, double fraction, FGEnvironment * result)
the lines :
result->set_dewpoint_degc
(do_interp(env1->get_dewpoint_sea_level_degc(),
env2->get_dewpoint_sea_level_degc(),
fraction));
may be correct is:
result->set_dewpoint_sea_level_degc
(do_interp(env1->get_dewpoint_sea_level_degc(),
env2->get_dewpoint_sea_level_degc(),
fraction));
With respect,
Alex
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel