X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FLaRCsim%2FLaRCsim.hxx;h=9759f6c2aa3e181b9ac5fcedba3cf13870607235;hb=e1d5a52a3a535007d4249aeba84fc645158997a7;hp=f729e68fbf1d714cbb2f2cc3aabd85ca0d6a128c;hpb=676e4c8846bee1dd92bf4b2b34797c4194995dce;p=flightgear.git diff --git a/src/FDM/LaRCsim/LaRCsim.hxx b/src/FDM/LaRCsim/LaRCsim.hxx index f729e68fb..9759f6c2a 100644 --- a/src/FDM/LaRCsim/LaRCsim.hxx +++ b/src/FDM/LaRCsim/LaRCsim.hxx @@ -3,7 +3,7 @@ // // Written by Curtis Olson, started May 1997. // -// Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com +// Copyright (C) 1997 Curtis L. Olson - http://www.flightgear.org/~curt // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as @@ -17,7 +17,7 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ //*************************************************************************/ @@ -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; + } };