From 713920356bf75963ff5a988fce03233bcb508aaf Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 30 May 2002 18:54:08 +0000 Subject: [PATCH] Property name typo. This resulted in all temperatures being 273K, which is far too warm at altitude. Thus, air density (and aircraft performance) was too low for a given altitude. --- src/FDM/YASim/YASim.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index 7b33a8fd5..f5631592a 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -237,7 +237,7 @@ void YASim::copyToYASim(bool copyState) // cout << "YASIM: ground = " << ground << endl; float pressure = fgGetDouble("/environment/pressure-inhg") * INHG2PA; - float temp = fgGetDouble("/environment/temperature-degC") + 273.15; + float temp = fgGetDouble("/environment/temperature-degc") + 273.15; // Convert and set: Model* model = _fdm->getAirplane()->getModel();