From 81bb2f00d1605c7157ecadbd7c0ef878f6016673 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 27 Oct 2000 22:27:16 +0000 Subject: [PATCH] Added manifold pressure to the property manager. --- src/Main/bfi.cxx | 14 ++++++++++++++ src/Main/bfi.hxx | 1 + 2 files changed, 15 insertions(+) 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 (); -- 2.39.2