X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2Fmodels%2FFGInertial.cpp;h=94aa291c3346653f8f37024f4bad96b49bdd3141;hb=cd24f7b6aaaa54f81655fb574bb050620c900dfe;hp=0779c695492960ea1159ef3e5e38bca47a46cf56;hpb=ae5c29e68588064dfa0dbddbd196191f14fdea91;p=flightgear.git diff --git a/src/FDM/JSBSim/models/FGInertial.cpp b/src/FDM/JSBSim/models/FGInertial.cpp index 0779c6954..94aa291c3 100644 --- a/src/FDM/JSBSim/models/FGInertial.cpp +++ b/src/FDM/JSBSim/models/FGInertial.cpp @@ -45,7 +45,7 @@ using namespace std; namespace JSBSim { -static const char *IdSrc = "$Id: FGInertial.cpp,v 1.19 2010/10/10 15:06:38 jberndt Exp $"; +static const char *IdSrc = "$Id: FGInertial.cpp,v 1.20 2010/11/18 12:38:06 jberndt Exp $"; static const char *IdHdr = ID_INERTIAL; /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -116,7 +116,7 @@ bool FGInertial::Run(void) RunPreFunctions(); // Gravitation accel - double r = Propagate->GetRadius(); + double r = FDMExec->GetPropagate()->GetRadius(); gAccel = GetGAccel(r); earthPosAngle += FDMExec->GetDeltaT()*RotationRate; @@ -145,7 +145,7 @@ FGColumnVector3 FGInertial::GetGravityJ2(FGColumnVector3 position) const // Gravitation accel double r = position.Magnitude(); - double lat = Propagate->GetLatitude(); + double lat = FDMExec->GetPropagate()->GetLatitude(); double sinLat = sin(lat); double adivr = a/r;