X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmagvar%2Fmagvar.cxx;h=11f59b8b468a62c2e6c902b11332aeb09bac37b3;hb=09a57c7a520cfd68e167b896850cfc37287f550d;hp=f078aae5005ea54ae2d656039ebeccc6e438928a;hpb=60e61a0627fe06b2472006b1e05e79a2686b2409;p=simgear.git diff --git a/simgear/magvar/magvar.cxx b/simgear/magvar/magvar.cxx index f078aae5..11f59b8b 100644 --- a/simgear/magvar/magvar.cxx +++ b/simgear/magvar/magvar.cxx @@ -2,7 +2,7 @@ // // Written by Curtis Olson, started July 2000. // -// Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org +// Copyright (C) 2000 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 @@ -16,25 +16,23 @@ // // 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 -#endif - #include -#include #include #include "coremag.hxx" #include "magvar.hxx" -SGMagVar::SGMagVar() { +SGMagVar::SGMagVar() + : magvar(0.0), + magdip(0.0) +{ } SGMagVar::~SGMagVar() { @@ -51,6 +49,9 @@ void SGMagVar::update( double lon, double lat, double alt_m, double jd ) { double sgGetMagVar( double lon, double lat, double alt_m, double jd ) { + // cout << "lat = " << lat << " lon = " << lon << " elev = " << alt_m + // << " JD = " << jd << endl; + double field[6]; return calc_magvar( lat, lon, alt_m / 1000.0, (long)jd, field ); }