]> git.mxchange.org Git - flightgear.git/commitdiff
Pass a few more values between LaRCsim and FGInterface.
authorcurt <curt>
Thu, 30 Sep 1999 02:59:12 +0000 (02:59 +0000)
committercurt <curt>
Thu, 30 Sep 1999 02:59:12 +0000 (02:59 +0000)
src/FDM/LaRCsim.cxx
src/FDM/flight.hxx

index cbed2dd954937221a35367ff02c1457d9ecfb288..d6a3be07d81c924865c732d5a1471519db97e27b 100644 (file)
@@ -289,9 +289,9 @@ int fgLaRCsim_2_FGInterface (FGInterface& f) {
 
     // Accelerations
     // f.set_Accels_Local( V_dot_north, V_dot_east, V_dot_down );
-    // f.set_Accels_Body( U_dot_body, V_dot_body, W_dot_body );
-    // f.set_Accels_CG_Body( A_X_cg, A_Y_cg, A_Z_cg );
-    // f.set_Accels_Pilot_Body( A_X_pilot, A_Y_pilot, A_Z_pilot );
+    f.set_Accels_Body( U_dot_body, V_dot_body, W_dot_body );
+    f.set_Accels_CG_Body( A_X_cg, A_Y_cg, A_Z_cg );
+    f.set_Accels_Pilot_Body( A_X_pilot, A_Y_pilot, A_Z_pilot );
     // f.set_Accels_CG_Body_N( N_X_cg, N_Y_cg, N_Z_cg );
     // f.set_Accels_Pilot_Body_N( N_X_pilot, N_Y_pilot, N_Z_pilot );
     // f.set_Accels_Omega( P_dot_body, Q_dot_body, R_dot_body );
index 4e81f042debe06cfa9d73a78632370fa7aa0f527..fe238a11a8c9b79da64369c257910ceeecdf49a2 100644 (file)
@@ -303,36 +303,36 @@ public:
 
     FG_VECTOR_3    v_dot_body_v;
     // inline double * get_V_dot_body_v() { return v_dot_body_v; }
-    // inline double get_U_dot_body() const { return v_dot_body_v[0]; }
-    // inline double get_V_dot_body() const { return v_dot_body_v[1]; }
-    // inline double get_W_dot_body() const { return v_dot_body_v[2]; }
-    /* inline void set_Accels_Body( double u, double v, double w ) {
-       v_dot_local_v[0] = u;
-       v_dot_local_v[1] = v;
-       v_dot_local_v[2] = w;
-    } */
+    inline double get_U_dot_body() const { return v_dot_body_v[0]; }
+    inline double get_V_dot_body() const { return v_dot_body_v[1]; }
+    inline double get_W_dot_body() const { return v_dot_body_v[2]; }
+    inline void set_Accels_Body( double u, double v, double w ) {
+       v_dot_body_v[0] = u;
+       v_dot_body_v[1] = v;
+       v_dot_body_v[2] = w;
+    }
 
     FG_VECTOR_3    a_cg_body_v;
     // inline double * get_A_cg_body_v() { return a_cg_body_v; }
-    // inline double get_A_X_cg() const { return a_cg_body_v[0]; }
-    // inline double get_A_Y_cg() const { return a_cg_body_v[1]; }
-    // inline double get_A_Z_cg() const { return a_cg_body_v[2]; }
-    /* inline void set_Accels_CG_Body( double x, double y, double z ) {
+    inline double get_A_X_cg() const { return a_cg_body_v[0]; }
+    inline double get_A_Y_cg() const { return a_cg_body_v[1]; }
+    inline double get_A_Z_cg() const { return a_cg_body_v[2]; }
+    inline void set_Accels_CG_Body( double x, double y, double z ) {
        a_cg_body_v[0] = x;
        a_cg_body_v[1] = y;
        a_cg_body_v[2] = z;
-    } */
+    }
 
     FG_VECTOR_3    a_pilot_body_v;
     // inline double * get_A_pilot_body_v() { return a_pilot_body_v; }
-    // inline double get_A_X_pilot() const { return a_pilot_body_v[0]; }
-    // inline double get_A_Y_pilot() const { return a_pilot_body_v[1]; }
-    // inline double get_A_Z_pilot() const { return a_pilot_body_v[2]; }
-    /* inline void set_Accels_Pilot_Body( double x, double y, double z ) {
+    inline double get_A_X_pilot() const { return a_pilot_body_v[0]; }
+    inline double get_A_Y_pilot() const { return a_pilot_body_v[1]; }
+    inline double get_A_Z_pilot() const { return a_pilot_body_v[2]; }
+    inline void set_Accels_Pilot_Body( double x, double y, double z ) {
        a_pilot_body_v[0] = x;
        a_pilot_body_v[1] = y;
        a_pilot_body_v[2] = z;
-    } */
+    }
 
     FG_VECTOR_3    n_cg_body_v;
     // inline double * get_N_cg_body_v() { return n_cg_body_v; }