]> git.mxchange.org Git - flightgear.git/commitdiff
Property name typo. This resulted in all temperatures being 273K,
authorandy <andy>
Thu, 30 May 2002 18:54:08 +0000 (18:54 +0000)
committerandy <andy>
Thu, 30 May 2002 18:54:08 +0000 (18:54 +0000)
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

index 7b33a8fd5d37f4fb7c8ae60e6c4a20c3acf0ab40..f5631592a3231132e467b31a1290826f2670a00c 100644 (file)
@@ -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();