]> git.mxchange.org Git - flightgear.git/commitdiff
Added manifold pressure to the property manager.
authorcurt <curt>
Fri, 27 Oct 2000 22:27:16 +0000 (22:27 +0000)
committercurt <curt>
Fri, 27 Oct 2000 22:27:16 +0000 (22:27 +0000)
src/Main/bfi.cxx
src/Main/bfi.hxx

index 59a5e68e80a0a7042a6483051402dcf65d178d1b..ba599925dc690201d3532dbcfa38b202f87d34e0 100644 (file)
@@ -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();
+  }
+}
+
+
 \f
 ////////////////////////////////////////////////////////////////////////
 // Velocities
index 877af44d92895c905a01e5b2eda962c44b6bacb7..63e2bd6668091977ed60f3edc8d2815c7f82b424 100644 (file)
@@ -95,6 +95,7 @@ public:
   static void setRPM ( double rpm );
   static double getEGT ();
   static double getCHT ();
+  static double getMP ();
 
                                // Velocities
   static double getAirspeed ();