From 9644966dfd3d26bc5f87338ff31df176d4e84d04 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 4 Nov 2019 15:19:10 +0100 Subject: [PATCH] Also add pressure to the mix --- src/Model/acmodel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/acmodel.cxx b/src/Model/acmodel.cxx index b95a4495e..6b36dd362 100644 --- a/src/Model/acmodel.cxx +++ b/src/Model/acmodel.cxx @@ -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 ); }