current_properties.tieDouble("/orientation/roll",
getRoll, setRoll);
+ // Engine
+ current_properties.tieDouble("/engine0/rpm",
+ getRPM, setRPM);
+
// Velocities
current_properties.tieDouble("/velocities/airspeed",
getAirspeed, 0);
}
+/**
+ * Return the current engine0 rpm
+ */
+double
+FGBFI::getRPM ()
+{
+ return current_aircraft.fdm_state->get_engine(0)->get_RPM();
+}
+
+
+/**
+ * Set the current engine0 rpm
+ */
+void
+FGBFI::setRPM (double rpm)
+{
+ current_aircraft.fdm_state->get_engine(0)->set_RPM( rpm );
+}
+
+
\f
////////////////////////////////////////////////////////////////////////
// Velocities
static void setPitch (double pitch);
static void setRoll (double roll);
+ // Engine
+ static double getRPM ();
+ static void setRPM ( double rpm );
// Velocities
static double getAirspeed ();