From: curt Date: Fri, 27 Oct 2000 22:27:16 +0000 (+0000) Subject: Added manifold pressure to the property manager. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81bb2f00d1605c7157ecadbd7c0ef878f6016673;hp=b83ad153131483a9d25553e796c5a037a73fb109;p=flightgear.git Added manifold pressure to the property manager. --- diff --git a/src/Main/bfi.cxx b/src/Main/bfi.cxx index 59a5e68e8..ba599925d 100644 --- a/src/Main/bfi.cxx +++ b/src/Main/bfi.cxx @@ -132,6 +132,8 @@ FGBFI::init () getEGT, 0); current_properties.tieDouble("/engines/engine0/cht", getCHT, 0); + current_properties.tieDouble("/engines/engine0/mp", + getMP, 0); // Velocities current_properties.tieDouble("/velocities/airspeed", @@ -727,6 +729,18 @@ FGBFI::getCHT () } +/** + * Return the current engine0 CHT. + */ +double +FGBFI::getMP () +{ + if ( current_aircraft.fdm_state->get_engine(0) != NULL ) { + return current_aircraft.fdm_state->get_engine(0)->get_Manifold_Pressure(); + } +} + + //////////////////////////////////////////////////////////////////////// // Velocities diff --git a/src/Main/bfi.hxx b/src/Main/bfi.hxx index 877af44d9..63e2bd666 100644 --- a/src/Main/bfi.hxx +++ b/src/Main/bfi.hxx @@ -95,6 +95,7 @@ public: static void setRPM ( double rpm ); static double getEGT (); static double getCHT (); + static double getMP (); // Velocities static double getAirspeed ();