]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGPosition.h
Check return value of FDM::init().
[flightgear.git] / src / FDM / JSBSim / FGPosition.h
index eaa7e9dec3d0257d20219f42fd29a132f0e42468..354f619449683e774a3afb714325ed0ce674124c 100644 (file)
@@ -45,6 +45,17 @@ INCLUDES
 #include "FGModel.h"
 #include "FGMatrix.h"
 
+#define ID_POSITION "$Header$"
+
+
+/*******************************************************************************
+DEFINITIONS
+*******************************************************************************/
+
+/** Models the lateral and longitudinal translational EOM.
+    @author Jon S. Berndt
+    @version $Id$
+  */
 /*******************************************************************************
 CLASS DECLARATION
 *******************************************************************************/
@@ -54,6 +65,7 @@ class FGPosition : public FGModel {
   FGColumnVector vUVW;
   FGColumnVector vVel;
   FGColumnVector vVelDot;
+  FGColumnVector vRunwayNormal;
   
   double Vee, invMass, invRadius;
   double Radius, h;
@@ -89,7 +101,10 @@ public:
   inline double GetLongitudeDot(void) { return LongitudeDot; }
   inline double GetRunwayRadius(void) { return RunwayRadius; }
   inline double GetDistanceAGL(void)  { return DistanceAGL; }
+  inline FGColumnVector GetRunwayNormal(void) { return vRunwayNormal; }
+  
   inline double GetGamma(void) { return gamma; }
+  inline void SetGamma(float tt) { gamma = tt; }
   inline double GetHOverB(void) { return hoverb; }
   void SetvVel(const FGColumnVector& v) { vVel = v; }
   void SetLatitude(float tt) { Latitude = tt; }
@@ -98,7 +113,10 @@ public:
   void SetRunwayRadius(double tt) { RunwayRadius = tt; }
   void SetSeaLevelRadius(double tt) { SeaLevelRadius = tt;}
   void SetDistanceAGL(double tt);
-
+  inline void SetRunwayNormal(double fgx, double fgy, double fgz ) {
+      vRunwayNormal << fgx << fgy << fgz;
+  }
+  
   bool Run(void);
 };