]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGCoefficient.h
JSBSim tweaks.
[flightgear.git] / src / FDM / JSBSim / FGCoefficient.h
index ce8a21daf27c334b1b92db562754be2c0cbcb2cf..5cd6799c31cf52039caad5095f43a66b68a72bf7 100644 (file)
@@ -46,12 +46,13 @@ INCLUDES
 #include <string>
 #include "FGConfigFile.h"
 #include "FGDefs.h"
+#include "FGTable.h"
 
 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 DEFINITIONS
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
-#define ID_COEFFICIENT "$Header"
+#define ID_COEFFICIENT "$Id$"
 
 using std::vector;
 
@@ -105,12 +106,12 @@ class FGCoefficient
   string name;
   string method;
   float StaticValue;
-  float **Table;
   eParam LookupR, LookupC;
   MultVec multipliers;
   int rows, columns;
   Type type;
   float SD; // Actual stability derivative (or other coefficient) value
+  FGTable *Table;
 
   FGFDMExec*      FDMExec;
   FGState*        State;
@@ -122,14 +123,11 @@ class FGCoefficient
   FGPosition*     Position;
   FGAuxiliary*    Auxiliary;
   FGOutput*       Output;
-  
-  bool DeAllocate(void);
-  bool Allocate(int, int);
 
 public:
   FGCoefficient(FGFDMExec*, FGConfigFile*);
-  ~FGCoefficient(void);
-  
+  ~FGCoefficient();
+
   float Value(float, float);
   float Value(float);
   float Value(void);
@@ -138,8 +136,10 @@ public:
   inline float GetSD(void) {return SD;}
   inline MultVec Getmultipliers(void) {return multipliers;}
   void DumpSD(void);
-
+private:
+  void Debug(void);
 };
 
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 #endif
+