X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2Fmodels%2FFGBuoyantForces.h;h=c27566d3788546219e5761dfd28504e51415bc2c;hb=4f364af6d178d947eae1a5a751e3a9542b270069;hp=b1a7ee2917b07297665cb9cf557e871415a60a6d;hpb=70be1629e61d9b751a2f73df30b83bb1be6ca4fe;p=flightgear.git diff --git a/src/FDM/JSBSim/models/FGBuoyantForces.h b/src/FDM/JSBSim/models/FGBuoyantForces.h index b1a7ee291..c27566d37 100644 --- a/src/FDM/JSBSim/models/FGBuoyantForces.h +++ b/src/FDM/JSBSim/models/FGBuoyantForces.h @@ -4,8 +4,8 @@ Author: Anders Gidenstam, Jon S. Berndt Date started: 01/21/08 - ------------- Copyright (C) 2008 Anders Gidenstam ------------- - ------------- Copyright (C) 2008 Jon S. Berndt (jsb@hal-pc.org) ------------- + ------------- Copyright (C) 2008 - 2010 Anders Gidenstam ------------- + ------------- Copyright (C) 2008 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 @@ -44,14 +44,14 @@ INCLUDES #include "FGModel.h" #include "FGGasCell.h" -#include -#include +#include "math/FGColumnVector3.h" +#include "input_output/FGXMLFileRead.h" /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DEFINITIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ -#define ID_BUOYANTFORCES "$Id$" +#define ID_BUOYANTFORCES "$Id: FGBuoyantForces.h,v 1.11 2010/05/07 20:38:34 andgi Exp $" /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FORWARD DECLARATIONS @@ -96,7 +96,7 @@ CLASS DOCUMENTATION See FGGasCell for the full configuration file format for gas cells. @author Anders Gidenstam, Jon S. Berndt - @version $Id$ + @version $Id: FGBuoyantForces.h,v 1.11 2010/05/07 20:38:34 andgi Exp $ */ /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -130,10 +130,18 @@ public: @return a force vector. */ const FGColumnVector3& GetForces(void) const {return vTotalForces;} + /** Gets a component of the total Buoyant force vector. + @return a component of the force vector. */ + double GetForces(int idx) const {return vTotalForces(idx);} + /** Gets the total Buoyancy moment vector. @return a moment vector. */ const FGColumnVector3& GetMoments(void) const {return vTotalMoments;} + /** Gets a component of the total Buoyancy moment vector. + @return a component of the moment vector. */ + double GetMoments(int idx) const {return vTotalMoments(idx);} + /** Gets the total gas mass. The gas mass is part of the aircraft's inertia. @return mass in slugs. */ @@ -169,8 +177,6 @@ private: FGColumnVector3 vGasCellXYZ; FGColumnVector3 vXYZgasCell_arm; - vector interface_properties; - bool NoneDefined; void bind(void);