]> git.mxchange.org Git - flightgear.git/commitdiff
Add the ability to set the RPM from the outside.
authordavid <david>
Sat, 18 Oct 2003 20:07:06 +0000 (20:07 +0000)
committerdavid <david>
Sat, 18 Oct 2003 20:07:06 +0000 (20:07 +0000)
src/FDM/YASim/PropEngine.cpp
src/FDM/YASim/PropEngine.hpp

index 039c75172a7afe805c4248c3449627052749468f..429ded72e6ab890a6219e09e433cd16aaa93bbe8 100644 (file)
@@ -62,6 +62,11 @@ float PropEngine::getOmega()
     return _omega;
 }
 
+void PropEngine::setOmega (float omega)
+{
+    _omega = omega;
+}
+
 void PropEngine::getThrust(float* out)
 {
     int i;
index a0f84dc8c0eab1301edd6b13737713eef038ca26..7b8eac12861a668020d3f9b24e6383aa6f518375 100644 (file)
@@ -36,6 +36,7 @@ public:
     virtual void stabilize();
 
     float getOmega();
+    void setOmega (float omega);
     
 private:
     float _moment;