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:
parent
b2cefb1450
commit
713920356b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue