1
0
Fork 0

Correct temperature value passed to FDM.

This commit is contained in:
david 2002-06-07 00:15:21 +00:00
parent 56642901b5
commit a08d92e142

View file

@ -206,7 +206,7 @@ FGEnvironmentMgr::_update_fdm () const
// convert from Rankine to Celsius // convert from Rankine to Celsius
cur_fdm_state cur_fdm_state
->set_Static_temperature((9.0/5.0) ->set_Static_temperature((9.0/5.0)
* _environment->get_temperature_degc() + 492.0); * (_environment->get_temperature_degc() + 273.15));
// convert from inHG to PSF // convert from inHG to PSF
cur_fdm_state cur_fdm_state
->set_Static_pressure(_environment->get_pressure_inhg() * 70.726566); ->set_Static_pressure(_environment->get_pressure_inhg() * 70.726566);