#endif
#include "globals.hxx"
-#include "options.hxx"
#include "save.hxx"
#include "fg_init.hxx"
#include <simgear/misc/props.hxx>
getRPM, 0);
current_properties.tieDouble("/engines/engine0/egt",
getEGT, 0);
+ current_properties.tieDouble("/engines/engine0/cht",
+ getCHT, 0);
+ current_properties.tieDouble("/engines/engine0/mp",
+ getMP, 0);
// Velocities
current_properties.tieDouble("/velocities/airspeed",
}
+/**
+ * Return the current engine0 CHT.
+ */
+double
+FGBFI::getCHT ()
+{
+ if ( current_aircraft.fdm_state->get_engine(0) != NULL ) {
+ return current_aircraft.fdm_state->get_engine(0)->get_CHT();
+ }
+}
+
+
+/**
+ * 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
FGBFI::setSpeedNorth (double speed)
{
if (getSpeedNorth() != speed) {
- globals->get_options()->set_uBody(speed);
current_aircraft.fdm_state->set_Velocities_Local(speed,
getSpeedEast(),
getSpeedDown());
FGBFI::setSpeedEast (double speed)
{
if (getSpeedEast() != speed) {
- globals->get_options()->set_vBody(speed);
current_aircraft.fdm_state->set_Velocities_Local(getSpeedNorth(),
speed,
getSpeedDown());
FGBFI::setSpeedDown (double speed)
{
if (getSpeedDown() != speed) {
- globals->get_options()->set_wBody(speed);
current_aircraft.fdm_state->set_Velocities_Local(getSpeedNorth(),
getSpeedEast(),
speed);