1
0
Fork 0

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.
This commit is contained in:
andy 2002-05-30 18:54:08 +00:00
parent b2cefb1450
commit 713920356b

View 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();