From: curt Date: Thu, 30 Sep 1999 02:59:12 +0000 (+0000) Subject: Pass a few more values between LaRCsim and FGInterface. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa065f7068e6f14ca3963a1ff7c0787f0acb838b;p=flightgear.git Pass a few more values between LaRCsim and FGInterface. --- diff --git a/src/FDM/LaRCsim.cxx b/src/FDM/LaRCsim.cxx index cbed2dd95..d6a3be07d 100644 --- a/src/FDM/LaRCsim.cxx +++ b/src/FDM/LaRCsim.cxx @@ -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 ); diff --git a/src/FDM/flight.hxx b/src/FDM/flight.hxx index 4e81f042d..fe238a11a 100644 --- a/src/FDM/flight.hxx +++ b/src/FDM/flight.hxx @@ -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; }