]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Set the format default to float instead of int.
[flightgear.git] / src / AIModel / AIBase.hxx
index 89c7981528b7d49c0a6b173d5d79db615b092305..190500d3ac0203f223d336078b36bc6cef5499eb 100644 (file)
@@ -38,10 +38,10 @@ typedef struct {
    string callsign;
 
    // can be aircraft, ship, storm, thermal or ballistic
-   const char* m_type;
-   const char* m_class;
-   const char* path;
-   const char* flightplan;
+   string m_type;
+   string m_class;
+   string path;
+   string flightplan;
 
    FGAIFlightPlan *fp;
 
@@ -64,7 +64,7 @@ typedef struct {
    double wind_from_north;    // in feet per second
    double cd;                 // coefficient of drag
    bool wind;                 // if true, model reacts to parent wind
-   double weight;             // in lbs
+   double mass;               // in slugs
 } FGAIModelEntity;
 
 
@@ -179,7 +179,13 @@ public:
     double _getY_shift() const;
     double _getRotation() const;
 
-    static const double rho;
+    double rho;
+    double T;                             // temperature, degs farenheit
+    double p;                             // pressure lbs/sq ft
+       double a;                             // speed of sound at altitude (ft/s)
+       double Mach;                          // Mach number
+       
+    static const double e;
     static const double lbs_to_slugs;
 
     int _getID() const;