Added manifold pressure to the property manager.
This commit is contained in:
parent
b83ad15313
commit
81bb2f00d1
2 changed files with 15 additions and 0 deletions
|
@ -132,6 +132,8 @@ FGBFI::init ()
|
||||||
getEGT, 0);
|
getEGT, 0);
|
||||||
current_properties.tieDouble("/engines/engine0/cht",
|
current_properties.tieDouble("/engines/engine0/cht",
|
||||||
getCHT, 0);
|
getCHT, 0);
|
||||||
|
current_properties.tieDouble("/engines/engine0/mp",
|
||||||
|
getMP, 0);
|
||||||
|
|
||||||
// Velocities
|
// Velocities
|
||||||
current_properties.tieDouble("/velocities/airspeed",
|
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
|
// Velocities
|
||||||
|
|
|
@ -95,6 +95,7 @@ public:
|
||||||
static void setRPM ( double rpm );
|
static void setRPM ( double rpm );
|
||||||
static double getEGT ();
|
static double getEGT ();
|
||||||
static double getCHT ();
|
static double getCHT ();
|
||||||
|
static double getMP ();
|
||||||
|
|
||||||
// Velocities
|
// Velocities
|
||||||
static double getAirspeed ();
|
static double getAirspeed ();
|
||||||
|
|
Loading…
Reference in a new issue