From: andy Date: Thu, 30 May 2002 18:54:08 +0000 (+0000) Subject: Property name typo. This resulted in all temperatures being 273K, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=713920356bf75963ff5a988fce03233bcb508aaf;p=flightgear.git 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. --- 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();