1
0
Fork 0

Also add pressure to the mix

This commit is contained in:
Erik Hofman 2019-11-04 15:19:10 +01:00
parent c739d47793
commit 9644966dfd

View file

@ -210,7 +210,8 @@ FGAircraftModel::update (double dt)
float temp_c = fgGetFloat("/environment/temperature-degc");
float humidity = fgGetFloat("/environment/relative-humidity");
_fx->set_atmosphere( temp_c, humidity );
float pressure = fgGetFloat("/environment/pressure-inhg")*SG_INHG_TO_PA/1000.0f;
_fx->set_atmosphere( temp_c, humidity, pressure );
}