1999-02-05 21:26:01 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
|
|
|
|
Header: FGAircraft.h
|
|
|
|
Author: Jon S. Berndt
|
|
|
|
Date started: 12/12/98
|
|
|
|
|
|
|
|
------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
details.
|
|
|
|
|
|
|
|
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., 59 Temple
|
|
|
|
Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
Further information about the GNU General Public License can also be found on
|
|
|
|
the world wide web at http://www.gnu.org.
|
|
|
|
|
|
|
|
HISTORY
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
12/12/98 JSB Created
|
|
|
|
|
1999-02-11 21:05:34 +00:00
|
|
|
********************************************************************************
|
1999-02-05 21:26:01 +00:00
|
|
|
SENTRY
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef FGAIRCRAFT_H
|
|
|
|
#define FGAIRCRAFT_H
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
COMMENTS, REFERENCES, and NOTES
|
1999-02-26 22:09:10 +00:00
|
|
|
*******************************************************************************/
|
|
|
|
/**
|
|
|
|
The aerodynamic coefficients used in this model typically are:
|
|
|
|
<PRE>
|
|
|
|
<b>Longitudinal</b>
|
1999-02-05 21:26:01 +00:00
|
|
|
CL0 - Reference lift at zero alpha
|
|
|
|
CD0 - Reference drag at zero alpha
|
|
|
|
CDM - Drag due to Mach
|
|
|
|
CLa - Lift curve slope (w.r.t. alpha)
|
|
|
|
CDa - Drag curve slope (w.r.t. alpha)
|
|
|
|
CLq - Lift due to pitch rate
|
|
|
|
CLM - Lift due to Mach
|
|
|
|
CLadt - Lift due to alpha rate
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
Cmadt - Pitching Moment due to alpha rate
|
|
|
|
Cm0 - Reference Pitching moment at zero alpha
|
1999-02-05 21:26:01 +00:00
|
|
|
Cma - Pitching moment slope (w.r.t. alpha)
|
|
|
|
Cmq - Pitch damping (pitch moment due to pitch rate)
|
1999-02-26 22:09:10 +00:00
|
|
|
CmM - Pitch Moment due to Mach
|
1999-02-05 21:26:01 +00:00
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
<b>Lateral</b>
|
1999-02-05 21:26:01 +00:00
|
|
|
Cyb - Side force due to sideslip
|
|
|
|
Cyr - Side force due to yaw rate
|
|
|
|
|
|
|
|
Clb - Dihedral effect (roll moment due to sideslip)
|
|
|
|
Clp - Roll damping (roll moment due to roll rate)
|
|
|
|
Clr - Roll moment due to yaw rate
|
|
|
|
Cnb - Weathercocking stability (yaw moment due to sideslip)
|
|
|
|
Cnp - Rudder adverse yaw (yaw moment due to roll rate)
|
|
|
|
Cnr - Yaw damping (yaw moment due to yaw rate)
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
<b>Control</b>
|
|
|
|
CLDe - Lift due to elevator
|
|
|
|
CDDe - Drag due to elevator
|
1999-02-05 21:26:01 +00:00
|
|
|
CyDr - Side force due to rudder
|
|
|
|
CyDa - Side force due to aileron
|
|
|
|
|
|
|
|
CmDe - Pitch moment due to elevator
|
|
|
|
ClDa - Roll moment due to aileron
|
|
|
|
ClDr - Roll moment due to rudder
|
|
|
|
CnDr - Yaw moment due to rudder
|
|
|
|
CnDa - Yaw moment due to aileron
|
1999-02-26 22:09:10 +00:00
|
|
|
</PRE>
|
|
|
|
This class expects to be run in a directory which contains the subdirectory
|
|
|
|
structure shown below (where example aircraft X-15 is shown):
|
|
|
|
|
|
|
|
<PRE>
|
|
|
|
aircraft/
|
|
|
|
X-15/
|
|
|
|
X-15.dat reset00 reset01 reset02 ...
|
|
|
|
CDRAG/
|
|
|
|
a0 a M De
|
|
|
|
CSIDE/
|
|
|
|
b r Dr Da
|
|
|
|
CLIFT/
|
|
|
|
a0 a M adt De
|
|
|
|
CROLL/
|
|
|
|
b p r Da Dr
|
|
|
|
CPITCH/
|
|
|
|
a0 a adt q M De
|
|
|
|
CYAW/
|
|
|
|
b p r Dr Da
|
|
|
|
F-16/
|
|
|
|
F-16.dat reset00 reset01 ...
|
|
|
|
CDRAG/
|
|
|
|
a0 a M De
|
|
|
|
...
|
|
|
|
</PRE>
|
|
|
|
|
|
|
|
The General Idea
|
|
|
|
|
|
|
|
The file structure is arranged so that various modeled aircraft are stored in
|
|
|
|
their own subdirectory. Each aircraft subdirectory is named after the aircraft.
|
|
|
|
There should be a file present in the specific aircraft subdirectory (e.g.
|
|
|
|
aircraft/X-15) with the same name as the directory with a .dat appended. This
|
|
|
|
file contains mass properties information, name of aircraft, etc. for the
|
|
|
|
aircraft. In that same directory are reset files numbered starting from 0 (two
|
|
|
|
digit numbers), e.g. reset03. Within each reset file are values for important
|
|
|
|
state variables for specific flight conditions (altitude, airspeed, etc.). Also
|
|
|
|
within this directory are the directories containing lookup tables for the
|
|
|
|
stability derivatives for the aircraft.
|
|
|
|
@author Jon S. Berndt
|
|
|
|
@memo Encompasses all aircraft functionality and objects
|
|
|
|
@see <ll>
|
|
|
|
<li>[1] Cooke, Zyda, Pratt, and McGhee, "NPSNET: Flight Simulation Dynamic Modeling
|
|
|
|
Using Quaternions", Presence, Vol. 1, No. 4, pp. 404-420 Naval Postgraduate
|
|
|
|
School, January 1994</li>
|
|
|
|
<li>[2] D. M. Henderson, "Euler Angles, Quaternions, and Transformation Matrices",
|
|
|
|
JSC 12960, July 1977</li>
|
|
|
|
<li>[3] Richard E. McFarland, "A Standard Kinematic Model for Flight Simulation at
|
|
|
|
NASA-Ames", NASA CR-2497, January 1975</li>
|
|
|
|
<li>[4] Barnes W. McCormick, "Aerodynamics, Aeronautics, and Flight Mechanics",
|
|
|
|
Wiley & Sons, 1979 ISBN 0-471-03032-5</li>
|
|
|
|
<li>[5] Bernard Etkin, "Dynamics of Flight, Stability and Control", Wiley & Sons,
|
|
|
|
1982 ISBN 0-471-08936-2</li>
|
|
|
|
</ll>
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
/*******************************************************************************
|
1999-02-05 21:26:01 +00:00
|
|
|
INCLUDES
|
|
|
|
*******************************************************************************/
|
1999-02-26 22:09:10 +00:00
|
|
|
#ifdef FGFS
|
|
|
|
# include <Include/compiler.h>
|
|
|
|
# ifdef FG_HAVE_STD_INCLUDES
|
|
|
|
# include <fstream>
|
|
|
|
# else
|
|
|
|
# include <fstream.h>
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# include <fstream>
|
|
|
|
#endif
|
1999-02-05 21:26:01 +00:00
|
|
|
|
|
|
|
#include "FGModel.h"
|
|
|
|
#include "FGCoefficient.h"
|
|
|
|
#include "FGEngine.h"
|
|
|
|
#include "FGTank.h"
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
DEFINITIONS
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
CLASS DECLARATION
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
class FGAircraft : public FGModel
|
|
|
|
{
|
|
|
|
public:
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Constructor
|
|
|
|
@param FGFDMExec* - a pointer to the "owning" FDM Executive
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
FGAircraft(FGFDMExec*);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** Destructor */
|
1999-02-05 21:26:01 +00:00
|
|
|
~FGAircraft(void);
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** This must be called for each dt to execute the model algorithm */
|
1999-02-05 21:26:01 +00:00
|
|
|
bool Run(void);
|
1999-02-11 21:05:34 +00:00
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** This function must be called with the name of an aircraft which
|
|
|
|
has an associated .dat file in the appropriate subdirectory. The
|
|
|
|
appropriate subdirectory is underneath the main fgfs binary directory
|
|
|
|
called "aircraft/{<i>aircraft</i>}/, where {<i>aircraft</i>} is the name of
|
|
|
|
specific aircraft you want to simulate.
|
|
|
|
@memo Loads the given aircraft.
|
|
|
|
@param string Path to the Aircraft files
|
|
|
|
@param string Path to the Engine files
|
|
|
|
@param string The name of the aircraft to be loaded, e.g. "X15".
|
|
|
|
@return True - if successful
|
|
|
|
*/
|
|
|
|
bool LoadAircraft(string, string, string);
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Gets the aircraft name as defined in the aircraft config file.
|
|
|
|
@param
|
|
|
|
@return string Aircraft name.
|
|
|
|
*/
|
|
|
|
inline string GetAircraftName(void) {return AircraftName;}
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Sets the GearUp flag
|
|
|
|
@param boolean true or false
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline void SetGearUp(bool tt) {GearUp = tt;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Returns the state of the GearUp flag
|
|
|
|
@param
|
|
|
|
@return boolean true or false
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline bool GetGearUp(void) {return GearUp;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Returns the area of the wing
|
|
|
|
@param
|
|
|
|
@return float wing area S, in square feet
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline float GetWingArea(void) {return WingArea;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Returns the wing span
|
|
|
|
@param
|
|
|
|
@return float wing span in feet
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline float GetWingSpan(void) {return WingSpan;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Returns the average wing chord
|
|
|
|
@param
|
|
|
|
@return float wing chord in feet
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline float Getcbar(void) {return cbar;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo Returns an engine object
|
|
|
|
@param int The engine number
|
|
|
|
@return FGEengine* The pointer to the requested engine object.
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline FGEngine* GetEngine(int tt) {return Engine[tt];}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
inline FGTank* GetTank(int tt) {return Tank[tt];}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetWeight(void) {return Weight;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetMass(void) {return Mass;}
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetL(void) {return Moments[0];}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetM(void) {return Moments[1];}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetN(void) {return Moments[2];}
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetFx(void) {return Forces[0];}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetFy(void) {return Forces[1];}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetFz(void) {return Forces[2];}
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetIxx(void) {return Ixx;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetIyy(void) {return Iyy;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetIzz(void) {return Izz;}
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
inline float GetIxz(void) {return Ixz;}
|
1999-02-05 21:26:01 +00:00
|
|
|
|
|
|
|
private:
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void GetState(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void PutState(void);
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void FAero(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void FGear(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void FMass(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void FProp(void);
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void MAero(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void MGear(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void MMass(void);
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
void MProp(void);
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-11 21:05:34 +00:00
|
|
|
void MassChange(void);
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
float Moments[3];
|
1999-02-26 22:09:10 +00:00
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
1999-02-05 21:26:01 +00:00
|
|
|
float Forces[3];
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
// ***************************************************************************
|
|
|
|
/** @memo
|
|
|
|
@param
|
|
|
|
@return
|
|
|
|
*/
|
|
|
|
string AircraftName;
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
///
|
1999-02-11 21:05:34 +00:00
|
|
|
float Ixx, Iyy, Izz, Ixz, EmptyMass, Mass;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
float Xcg, Ycg, Zcg;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
float Xep, Yep, Zep;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
float rho, qbar, Vt;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
float alpha, beta;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
float WingArea, WingSpan, cbar;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-11 21:05:34 +00:00
|
|
|
float phi, tht, psi;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-11 21:05:34 +00:00
|
|
|
float Weight, EmptyWeight;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
float dt;
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
int numTanks;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
int numEngines;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
int numSelectedOxiTanks;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
int numSelectedFuelTanks;
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-11 21:05:34 +00:00
|
|
|
FGTank* Tank[MAX_TANKS];
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-11 21:05:34 +00:00
|
|
|
FGEngine *Engine[MAX_ENGINES];
|
1999-02-05 21:26:01 +00:00
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
FGCoefficient *Coeff[6][10];
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
int coeff_ctr[6];
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
bool GearUp;
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
1999-02-05 21:26:01 +00:00
|
|
|
enum Param {LiftCoeff,
|
|
|
|
DragCoeff,
|
|
|
|
SideCoeff,
|
|
|
|
RollCoeff,
|
|
|
|
PitchCoeff,
|
|
|
|
YawCoeff,
|
|
|
|
numCoeffs};
|
|
|
|
|
1999-02-26 22:09:10 +00:00
|
|
|
///
|
|
|
|
string Axis[6];
|
1999-02-05 21:26:01 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
#endif
|