]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/LaRCsim/LaRCsim.hxx
resync JSBSim
[flightgear.git] / src / FDM / LaRCsim / LaRCsim.hxx
index 45bdd703ea9a06938a8c519e2e6dd2107231fd3a..9759f6c2aa3e181b9ac5fcedba3cf13870607235 100644 (file)
@@ -41,9 +41,10 @@ private:
     void set_ls(void);
     void snap_shot(void);
     double time_step;
-    SGPropertyNode *speed_up;
-    SGPropertyNode *aero;
-    SGPropertyNode *uiuc_type;
+    SGPropertyNode_ptr speed_up;
+    SGPropertyNode_ptr aero;
+    SGPropertyNode_ptr uiuc_type;
+    double mass, i_xx, i_yy, i_zz, i_xz;
     
 public:
 
@@ -86,11 +87,21 @@ public:
     void set_Static_temperature(double T); 
     void set_Density(double rho); 
 
-/*
-    void set_Velocities_Local_Airmass (double wnorth, 
-                                      double weast, 
-                                      double wdown );
-*/
+    // Inertias
+    double get_Mass() const { return mass; }
+    double get_I_xx() const { return i_xx; }
+    double get_I_yy() const { return i_yy; }
+    double get_I_zz() const { return i_zz; }
+    double get_I_xz() const { return i_xz; }
+
+    void _set_Inertias( double m, double xx, double yy, double zz, double xz)
+    {
+       mass = m;
+       i_xx = xx;
+       i_yy = yy;
+       i_zz = zz;
+       i_xz = xz;
+    }
 };