X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2Fmodels%2FFGExternalForce.cpp;h=f0ef173b53f15ab716a65ee62a5b28d6620591f8;hb=642735ab18421db87a07d6841dd720fd4615bfff;hp=349f28db3f12951e445887f438c533b4508e9c93;hpb=88478f03d0bdd956d15b843cfba0f7025c9e827e;p=flightgear.git diff --git a/src/FDM/JSBSim/models/FGExternalForce.cpp b/src/FDM/JSBSim/models/FGExternalForce.cpp old mode 100755 new mode 100644 index 349f28db3..f0ef173b5 --- a/src/FDM/JSBSim/models/FGExternalForce.cpp +++ b/src/FDM/JSBSim/models/FGExternalForce.cpp @@ -4,7 +4,7 @@ Author: Jon Berndt, Dave Culp Date started: 9/21/07 - ------------- Copyright (C) 2007 Jon S. Berndt (jsb@hal-pc.org) ------------- + ------------- Copyright (C) 2007 Jon S. Berndt (jon@jsbsim.org) ------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software @@ -53,10 +53,14 @@ */ #include "FGExternalForce.h" +#include "input_output/FGXMLElement.h" +#include + +using namespace std; namespace JSBSim { -static const char *IdSrc = "$Id$"; +static const char *IdSrc = "$Id: FGExternalForce.cpp,v 1.11 2011/10/31 14:54:41 bcoconni Exp $"; static const char *IdHdr = ID_EXTERNALFORCE; //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -164,7 +168,7 @@ void FGExternalForce::SetMagnitude(double mag) //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -FGColumnVector3& FGExternalForce::GetBodyForces(void) +const FGColumnVector3& FGExternalForce::GetBodyForces(void) { if (Magnitude_Function) { double mag = Magnitude_Function->GetValue();