X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FLaRCsim%2FLaRCsim.cxx;h=850532f34532e698e28c3bbb84cca0899f846377;hb=13db36f67912be03c2e970e84cdcdbd41dddb61c;hp=8606b8b9d1e273f6975801f7e0c87ba83db262b8;hpb=029dda3297e3697438e1a58188527cbae90beebe;p=flightgear.git diff --git a/src/FDM/LaRCsim/LaRCsim.cxx b/src/FDM/LaRCsim/LaRCsim.cxx index 8606b8b9d..850532f34 100644 --- a/src/FDM/LaRCsim/LaRCsim.cxx +++ b/src/FDM/LaRCsim/LaRCsim.cxx @@ -16,19 +16,21 @@ // // 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$ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include // strcmp() #include #include -#include #include -#include #include #include #include @@ -46,6 +48,8 @@ FGLaRCsim::FGLaRCsim( double dt ) { + mass=i_xx=i_yy=i_zz=i_xz=0; + // set_delta_t( dt ); speed_up = fgGetNode("/sim/speed-up", true); @@ -692,7 +696,6 @@ bool FGLaRCsim::copy_from_LaRCsim() { _set_Altitude_AGL( Altitude - Runway_altitude ); // Miscellaneous quantities - _set_T_Local_to_Body(T_local_to_body_m); // set_Gravity( Gravity ); // set_Centrifugal_relief( Centrifugal_relief ); @@ -706,9 +709,9 @@ bool FGLaRCsim::copy_from_LaRCsim() { // set_Cos_beta( Cos_beta ); // set_Sin_beta( Sin_beta ); - _set_Cos_phi( Cos_phi ); + // _set_Cos_phi( Cos_phi ); // set_Sin_phi( Sin_phi ); - _set_Cos_theta( Cos_theta ); + // _set_Cos_theta( Cos_theta ); // set_Sin_theta( Sin_theta ); // set_Cos_psi( Cos_psi ); // set_Sin_psi( Sin_psi ); @@ -744,11 +747,6 @@ bool FGLaRCsim::copy_from_LaRCsim() { // D_pilot_above_rwy ); // set_Pilot_Rwy_Rwy( X_pilot_rwy, Y_pilot_rwy, H_pilot_rwy ); - _set_sin_lat_geocentric(Lat_geocentric); - _set_cos_lat_geocentric(Lat_geocentric); - _set_sin_cos_longitude(Longitude); - _set_sin_cos_latitude(Latitude); - // printf("sin_lat_geo %f cos_lat_geo %f\n", sin_Lat_geoc, cos_Lat_geoc); // printf("sin_lat %f cos_lat %f\n", // get_sin_latitude(), get_cos_latitude());