]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGLGear.h
Check return value of FDM::init().
[flightgear.git] / src / FDM / JSBSim / FGLGear.h
index 037e0f8248f5e22d4fbd6b781a14261909b218da..be4abad6ff2b9f4a6ebbb9ef249dfaf13d6cfec0 100644 (file)
@@ -68,6 +68,8 @@ INCLUDES
 DEFINITIONS
 *******************************************************************************/
 
+#define ID_LGEAR "$Header"
+
 /*******************************************************************************
 CLASS DECLARATION
 *******************************************************************************/
@@ -84,21 +86,32 @@ public:
 
   FGColumnVector Force(void);
   FGColumnVector Moment(void) {return vMoment;}
+  FGColumnVector GetBodyLocation(void) { return vWhlBodyVec; }
 
   inline string GetName(void)      {return name;          }
   inline bool   GetWOW(void)       {return WOW;           }
   inline float  GetCompLen(void)   {return compressLength;}
   inline float  GetCompVel(void)   {return compressSpeed; }
   inline float  GetCompForce(void) {return Force()(3);    }
+  
+  inline void SetBrake(double bp) {brakePct = bp;}
+  
+  inline void SetReport(bool bb) { ReportEnable=bb; }
+  inline bool GetReport(void)    { return ReportEnable; }
+  
 
 private:
   enum {eX=1, eY, eZ};
   FGColumnVector vXYZ;
   FGColumnVector vMoment;
-  float kSpring, bDamp, compressLength, compressSpeed;
-  float statFCoeff, rollFCoeff, skidFCoeff;
-  float frictionForce, compForce;
-  float brakePct, brakeForce, brakeCoeff;
+  FGColumnVector vWhlBodyVec;
+  float kSpring;
+  float bDamp;
+  float compressLength;
+  float compressSpeed;
+  float staticFCoeff, dynamicFCoeff;
+  float brakePct;
+  float maxCompLen;
   double SinkRate;
   double GroundSpeed;
   double DistanceTraveled;
@@ -107,7 +120,12 @@ private:
   bool WOW;
   bool FirstContact;
   bool Reported;
+  bool ReportEnable;
   string name;
+  string BrakeType;
+  string SteerType;
+  string GroupMember;
+  float  maxSteerAngle;
 
   FGFDMExec*     Exec;
   FGState*       State;