Also add pressure to the mix
This commit is contained in:
parent
c739d47793
commit
9644966dfd
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue