Alex Buzin: Fix wrong calculation of temperature and dewpoint
This commit is contained in:
parent
3714a0ef51
commit
eb8dd47971
1 changed files with 2 additions and 2 deletions
|
@ -546,8 +546,8 @@ FGEnvironment::set_elevation_ft (double e)
|
||||||
{
|
{
|
||||||
elevation_ft = e;
|
elevation_ft = e;
|
||||||
if( live_update ) {
|
if( live_update ) {
|
||||||
_recalc_alt_dewpoint();
|
|
||||||
_recalc_alt_pt();
|
_recalc_alt_pt();
|
||||||
|
_recalc_alt_dewpoint();
|
||||||
_recalc_density();
|
_recalc_density();
|
||||||
_recalc_relative_humidity();
|
_recalc_relative_humidity();
|
||||||
}
|
}
|
||||||
|
@ -824,7 +824,7 @@ interpolate (const FGEnvironment * env1, const FGEnvironment * env2,
|
||||||
env2->get_temperature_sea_level_degc(),
|
env2->get_temperature_sea_level_degc(),
|
||||||
fraction));
|
fraction));
|
||||||
|
|
||||||
result->set_dewpoint_degc
|
result->set_dewpoint_sea_level_degc
|
||||||
(do_interp(env1->get_dewpoint_sea_level_degc(),
|
(do_interp(env1->get_dewpoint_sea_level_degc(),
|
||||||
env2->get_dewpoint_sea_level_degc(),
|
env2->get_dewpoint_sea_level_degc(),
|
||||||
fraction));
|
fraction));
|
||||||
|
|
Loading…
Add table
Reference in a new issue