DEFINITIONS
*******************************************************************************/
+#define ID_LGEAR "$Header"
+
/*******************************************************************************
CLASS DECLARATION
*******************************************************************************/
class FGAircraft;
class FGPosition;
+class FGRotation;
class FGLGear
{
~FGLGear(void);
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;
- float kSpring, bDamp, compressLength;
- float statFCoeff, rollFCoeff, skidFCoeff;
- float frictionForce, compForce;
- float brakePct, brakeForce, brakeCoeff;
+ FGColumnVector vMoment;
+ FGColumnVector vWhlBodyVec;
+ float kSpring;
+ float bDamp;
+ float compressLength;
+ float compressSpeed;
+ float staticFCoeff, dynamicFCoeff;
+ float brakePct;
+ float maxCompLen;
+ double SinkRate;
+ double GroundSpeed;
+ double DistanceTraveled;
+ double MaximumStrutForce;
+ double MaximumStrutTravel;
+ bool WOW;
+ bool FirstContact;
+ bool Reported;
+ bool ReportEnable;
string name;
- FGState* State;
- FGAircraft* Aircraft;
- FGPosition* Position;
- FGFDMExec* Exec;
+ string BrakeType;
+ string SteerType;
+ string GroupMember;
+ float maxSteerAngle;
+
+ FGFDMExec* Exec;
+ FGState* State;
+ FGAircraft* Aircraft;
+ FGPosition* Position;
+ FGRotation* Rotation;
+
+ void Report(void);
};
#include "FGAircraft.h"
#include "FGPosition.h"
+#include "FGRotation.h"
/******************************************************************************/
#endif