~ubuntu-branches/debian/sid/flightgear/sid

« back to all changes in this revision

Viewing changes to src/FDM/JSBSim/models/FGAerodynamics.h

  • Committer: Package Import Robot
  • Author(s): Markus Wanner, Markus Wanner, Rebecca Palmer
  • Date: 2014-01-21 22:31:02 UTC
  • mfrom: (1.3.1) (15.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140121223102-cjw7g9le25acd119
Tags: 3.0.0~git20140204+c99ea4-1
[ Markus Wanner ]
* Upload to unstable.
* Adjust B-D to allow building on kfreebsd-*. Closes: #724686.
* Add a lintian-overrides on autotools; we use cmake.
* Upstream corrected the fgfs manpage. Closes: #556362.
* Drop unnecessary man page for gl-info. Closes: #698308.
* Drop README.Linux: it's outdated to the point of uselessness.
  Closes: #574173.
* Add an upper limit of libsimgear-dev versions that flightgear can be
  built with. Closes: #738436.
* Drop the libsvn-dev dependency, neither flightgear nor simgear depend
  on libsvn, anymore. Closes: #682947.
* List icons in debian/install rather than copying around from rules.
* Update menu entry for flightgear, add one for fgcom; add .xpm icons.
  Closes: #713924.
* flightgear.desktop: add German translation
* Bump Standards-Version to 3.9.5; no changes needed.

[ Rebecca Palmer ]
* New upstream release.
* Install the icons (based on code by Saikrishna Arcot).  (Not a
  complete fix for LP908153 as it only sets the menu/Dash icon, not the
  running window's icon, but better than nothing).
* Disable screensaver while running. Closes: LP#793599. Add required
  libdbus-1-dev dependency.
* Remove outdated README.Debian.
* Terrasync now works after just ticking the box. Closes: #252899.
* Always set Terrasync directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include "math/FGFunction.h"
47
47
#include "math/FGColumnVector3.h"
48
48
#include "math/FGMatrix33.h"
49
 
#include "input_output/FGXMLFileRead.h"
50
49
 
51
50
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52
51
DEFINITIONS
53
52
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
54
53
 
55
 
#define ID_AERODYNAMICS "$Id: FGAerodynamics.h,v 1.25 2011/08/04 12:46:32 jberndt Exp $"
 
54
#define ID_AERODYNAMICS "$Id: FGAerodynamics.h,v 1.29 2013/11/24 11:40:55 bcoconni Exp $"
56
55
 
57
56
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58
57
FORWARD DECLARATIONS
109
108
    Systems may NOT be combined, or a load error will occur.
110
109
 
111
110
    @author Jon S. Berndt, Tony Peden
112
 
    @version $Revision: 1.25 $
 
111
    @version $Revision: 1.29 $
113
112
*/
114
113
 
115
114
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
116
115
CLASS DECLARATION
117
116
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
118
117
 
119
 
class FGAerodynamics : public FGModel, public FGXMLFileRead
 
118
class FGAerodynamics : public FGModel
120
119
{
121
120
 
122
121
public:
154
153
      @return the force acting on an axis */
155
154
  double GetForces(int n) const {return vForces(n);}
156
155
 
157
 
  /** Gets the total aerodynamic moment vector.
 
156
  /** Gets the total aerodynamic moment vector about the CG.
158
157
      @return a moment vector reference. */
159
158
  const FGColumnVector3& GetMoments(void) const {return vMoments;}
160
159
 
161
 
  /** Gets the aerodynamic moment for an axis.
 
160
  /** Gets the aerodynamic moment about the CG for an axis.
162
161
      @return the moment about a single axis (as described also in the
163
162
              similar call to GetForces(int n).*/
164
163
  double GetMoments(int n) const {return vMoments(n);}
165
164
 
 
165
  /** Gets the total aerodynamic moment vector about the Moment Reference Center.
 
166
      @return a moment vector reference. */
 
167
  const FGColumnVector3& GetMomentsMRC(void) const {return vMomentsMRC;}
 
168
 
 
169
  /** Gets the aerodynamic moment about the Moment Reference Center for an axis.
 
170
      @return the moment about a single axis (as described also in the
 
171
              similar call to GetForces(int n).*/
 
172
  double GetMomentsMRC(int n) const {return vMomentsMRC(n);}
 
173
 
166
174
  /** Retrieves the aerodynamic forces in the wind axes.
167
175
      @return a reference to a column vector containing the wind axis forces. */
168
176
  const FGColumnVector3& GetvFw(void) const { return vFw; }
223
231
  typedef std::map<std::string,int> AxisIndex;
224
232
  AxisIndex AxisIdx;
225
233
  FGFunction* AeroRPShift;
226
 
  typedef vector <FGFunction*> AeroFunctionArray;
 
234
  typedef std::vector <FGFunction*> AeroFunctionArray;
227
235
  AeroFunctionArray* AeroFunctions;
228
236
  FGColumnVector3 vFnative;
229
237
  FGColumnVector3 vFw;
230
238
  FGColumnVector3 vForces;
 
239
  AeroFunctionArray* AeroFunctionsAtCG;
 
240
  FGColumnVector3 vFwAtCG;
 
241
  FGColumnVector3 vFnativeAtCG;
 
242
  FGColumnVector3 vForcesAtCG;
231
243
  FGColumnVector3 vMoments;
 
244
  FGColumnVector3 vMomentsMRC;
232
245
  FGColumnVector3 vDXYZcg;
233
246
  FGColumnVector3 vDeltaRP;
234
247
  double alphaclmax, alphaclmin;
238
251
  double clsq, lod, qbar_area;
239
252
 
240
253
  typedef double (FGAerodynamics::*PMF)(int) const;
241
 
  void DetermineAxisSystem(void);
 
254
  void DetermineAxisSystem(Element* document);
242
255
  void bind(void);
243
256
 
244
257
  void Debug(int from);