]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Gear.hpp
Constant-speed props were seeking to engine speed, not prop speed.
[flightgear.git] / src / FDM / YASim / Gear.hpp
index 6e432b6ddca69390c3a38979dd93ff8f771e1ddc..f4170ea66874e375f8ba5c80e07ebdd1d81efc7c 100644 (file)
@@ -37,7 +37,8 @@ public:
     void setBrake(float brake);
     void setRotation(float rotation);
     void setExtension(float extension);
-    
+    void setCastering(bool castering);
+
     void getPosition(float* out);
     void getCompression(float* out);
     float getSpring();
@@ -47,6 +48,7 @@ public:
     float getBrake();
     float getRotation();
     float getExtension();
+    bool getCastering();
 
     // Takes a velocity of the aircraft relative to ground, a rotation
     // vector, and a ground plane (all specified in local coordinates)
@@ -63,6 +65,7 @@ public:
 private:
     float calcFriction(float wgt, float v);
 
+    bool _castering;
     float _pos[3];
     float _cmpr[3];
     float _spring;