From a08d92e142aaa831be21bf8822afc69d4f4655fc Mon Sep 17 00:00:00 2001 From: david Date: Fri, 7 Jun 2002 00:15:21 +0000 Subject: [PATCH] Correct temperature value passed to FDM. --- src/Environment/environment_mgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index f9368e5ba..3821ff7ae 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -206,7 +206,7 @@ FGEnvironmentMgr::_update_fdm () const // convert from Rankine to Celsius cur_fdm_state ->set_Static_temperature((9.0/5.0) - * _environment->get_temperature_degc() + 492.0); + * (_environment->get_temperature_degc() + 273.15)); // convert from inHG to PSF cur_fdm_state ->set_Static_pressure(_environment->get_pressure_inhg() * 70.726566);