2000-11-03 23:02:47 +00:00
|
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
Header: FGAircraft.h
|
|
|
|
Author: Jon S. Berndt
|
|
|
|
Date started: 12/12/98
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.org) -------------
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
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.
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
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.
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
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.
|
2001-03-30 01:04:50 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
Further information about the GNU General Public License can also be found on
|
|
|
|
the world wide web at http://www.gnu.org.
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
HISTORY
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
12/12/98 JSB Created
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
1999-06-17 20:07:19 +00:00
|
|
|
SENTRY
|
2000-11-03 23:02:47 +00:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
1999-06-17 20:07:19 +00:00
|
|
|
|
|
|
|
#ifndef FGAIRCRAFT_H
|
|
|
|
#define FGAIRCRAFT_H
|
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
1999-06-17 20:07:19 +00:00
|
|
|
INCLUDES
|
2000-11-03 23:02:47 +00:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
1999-06-17 20:07:19 +00:00
|
|
|
|
|
|
|
#ifdef FGFS
|
2000-02-15 03:30:01 +00:00
|
|
|
# include <simgear/compiler.h>
|
2001-06-05 20:58:48 +00:00
|
|
|
# ifdef SG_HAVE_STD_INCLUDES
|
1999-12-20 20:24:49 +00:00
|
|
|
# include <vector>
|
2000-10-09 21:16:21 +00:00
|
|
|
# include <iterator>
|
1999-06-17 20:07:19 +00:00
|
|
|
# else
|
1999-12-20 20:24:49 +00:00
|
|
|
# include <vector.h>
|
2000-10-09 21:16:21 +00:00
|
|
|
# include <iterator.h>
|
1999-06-17 20:07:19 +00:00
|
|
|
# endif
|
|
|
|
#else
|
1999-12-20 20:24:49 +00:00
|
|
|
# include <vector>
|
2000-10-09 21:16:21 +00:00
|
|
|
# include <iterator>
|
1999-06-17 20:07:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "FGModel.h"
|
2000-04-24 23:49:06 +00:00
|
|
|
#include "FGConfigFile.h"
|
2001-10-05 20:19:59 +00:00
|
|
|
#include "FGColumnVector3.h"
|
1999-06-17 20:07:19 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
DEFINITIONS
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
|
|
|
|
2001-03-30 01:04:50 +00:00
|
|
|
#define ID_AIRCRAFT "$Id$"
|
2000-10-13 23:34:54 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
FORWARD DECLARATIONS
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
|
|
|
|
2003-06-03 08:46:15 +00:00
|
|
|
namespace JSBSim {
|
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
CLASS DOCUMENTATION
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
1999-06-17 20:07:19 +00:00
|
|
|
|
2000-10-10 17:44:35 +00:00
|
|
|
/** Encapsulates an Aircraft and its systems.
|
2000-11-03 23:02:47 +00:00
|
|
|
Owns all the parts (other classes) which make up this aircraft. This includes
|
|
|
|
the Engines, Tanks, Propellers, Nozzles, Aerodynamic and Mass properties,
|
|
|
|
landing gear, etc. These constituent parts may actually run as separate
|
|
|
|
JSBSim models themselves, but the responsibility for initializing them and
|
2004-01-14 22:09:39 +00:00
|
|
|
for retrieving their force and moment contributions falls to FGAircraft.
|
2000-10-10 17:44:35 +00:00
|
|
|
@author Jon S. Berndt
|
|
|
|
@version $Id$
|
2004-01-14 22:09:39 +00:00
|
|
|
@see Cooke, Zyda, Pratt, and McGhee, "NPSNET: Flight Simulation Dynamic Modeling
|
2000-10-14 02:10:10 +00:00
|
|
|
Using Quaternions", Presence, Vol. 1, No. 4, pp. 404-420 Naval Postgraduate
|
2004-01-14 22:09:39 +00:00
|
|
|
School, January 1994
|
|
|
|
@see D. M. Henderson, "Euler Angles, Quaternions, and Transformation Matrices",
|
|
|
|
JSC 12960, July 1977
|
|
|
|
@see Richard E. McFarland, "A Standard Kinematic Model for Flight Simulation at
|
|
|
|
NASA-Ames", NASA CR-2497, January 1975
|
|
|
|
@see Barnes W. McCormick, "Aerodynamics, Aeronautics, and Flight Mechanics",
|
|
|
|
Wiley & Sons, 1979 ISBN 0-471-03032-5
|
|
|
|
@see Bernard Etkin, "Dynamics of Flight, Stability and Control", Wiley & Sons,
|
|
|
|
1982 ISBN 0-471-08936-2
|
2000-11-03 23:02:47 +00:00
|
|
|
*/
|
2000-10-10 17:44:35 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
1999-06-17 20:07:19 +00:00
|
|
|
CLASS DECLARATION
|
2000-11-03 23:02:47 +00:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
1999-06-17 20:07:19 +00:00
|
|
|
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
class FGAircraft : public FGModel {
|
1999-06-17 20:07:19 +00:00
|
|
|
public:
|
2000-10-10 17:44:35 +00:00
|
|
|
/** Constructor
|
2000-11-03 23:02:47 +00:00
|
|
|
@param Executive a pointer to the parent executive object */
|
2000-10-10 17:44:35 +00:00
|
|
|
FGAircraft(FGFDMExec *Executive);
|
2000-10-14 02:10:10 +00:00
|
|
|
|
2000-10-10 17:44:35 +00:00
|
|
|
/// Destructor
|
2001-03-30 01:04:50 +00:00
|
|
|
~FGAircraft();
|
1999-06-17 20:07:19 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/** Runs the Aircraft model; called by the Executive
|
2000-10-10 17:44:35 +00:00
|
|
|
@see JSBSim.cpp documentation
|
2000-11-03 23:02:47 +00:00
|
|
|
@return false if no error */
|
1999-06-17 20:07:19 +00:00
|
|
|
bool Run(void);
|
2000-10-14 02:10:10 +00:00
|
|
|
|
2000-10-10 17:44:35 +00:00
|
|
|
/** Loads the aircraft.
|
|
|
|
The executive calls this method to load the aircraft into JSBSim.
|
2001-07-10 15:56:38 +00:00
|
|
|
@param AC_cfg a pointer to the config file instance
|
|
|
|
@return true if successful */
|
|
|
|
bool Load(FGConfigFile* AC_cfg);
|
2000-10-14 02:10:10 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/** Gets the aircraft name
|
|
|
|
@return the name of the aircraft as a string type */
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
inline string GetAircraftName(void) { return AircraftName; }
|
2000-10-14 02:10:10 +00:00
|
|
|
|
2000-11-03 23:02:47 +00:00
|
|
|
/// Gets the wing area
|
2002-03-20 12:45:02 +00:00
|
|
|
double GetWingArea(void) const { return WingArea; }
|
2000-11-03 23:02:47 +00:00
|
|
|
/// Gets the wing span
|
2002-03-20 12:45:02 +00:00
|
|
|
double GetWingSpan(void) const { return WingSpan; }
|
2000-11-03 23:02:47 +00:00
|
|
|
/// Gets the average wing chord
|
2002-03-20 12:45:02 +00:00
|
|
|
double Getcbar(void) const { return cbar; }
|
|
|
|
inline double GetWingIncidence(void) const { return WingIncidence; }
|
|
|
|
inline double GetHTailArea(void) const { return HTailArea; }
|
|
|
|
inline double GetHTailArm(void) const { return HTailArm; }
|
|
|
|
inline double GetVTailArea(void) const { return VTailArea; }
|
|
|
|
inline double GetVTailArm(void) const { return VTailArm; }
|
|
|
|
inline double Getlbarh(void) const { return lbarh; } // HTailArm / cbar
|
|
|
|
inline double Getlbarv(void) const { return lbarv; } // VTailArm / cbar
|
|
|
|
inline double Getvbarh(void) const { return vbarh; } // H. Tail Volume
|
|
|
|
inline double Getvbarv(void) const { return vbarv; } // V. Tail Volume
|
2001-10-05 20:19:59 +00:00
|
|
|
inline FGColumnVector3& GetMoments(void) { return vMoments; }
|
2002-03-20 12:45:02 +00:00
|
|
|
inline double GetMoments(int idx) const { return vMoments(idx); }
|
2001-10-05 20:19:59 +00:00
|
|
|
inline FGColumnVector3& GetForces(void) { return vForces; }
|
2002-03-20 12:45:02 +00:00
|
|
|
inline double GetForces(int idx) const { return vForces(idx); }
|
2001-10-05 20:19:59 +00:00
|
|
|
inline FGColumnVector3& GetBodyAccel(void) { return vBodyAccel; }
|
2004-01-14 22:09:39 +00:00
|
|
|
inline double GetBodyAccel(int idx) { return vBodyAccel(idx); }
|
2002-03-20 12:45:02 +00:00
|
|
|
inline FGColumnVector3& GetNcg (void) { return vNcg; }
|
2004-01-14 22:09:39 +00:00
|
|
|
inline double GetNcg(int idx) { return vNcg(idx); }
|
2001-10-05 20:19:59 +00:00
|
|
|
inline FGColumnVector3& GetXYZrp(void) { return vXYZrp; }
|
2004-01-14 22:09:39 +00:00
|
|
|
inline FGColumnVector3& GetXYZvrp(void) { return vXYZvrp; }
|
2001-10-05 20:19:59 +00:00
|
|
|
inline FGColumnVector3& GetXYZep(void) { return vXYZep; }
|
2002-03-20 12:45:02 +00:00
|
|
|
inline double GetXYZrp(int idx) const { return vXYZrp(idx); }
|
2004-01-14 22:09:39 +00:00
|
|
|
inline double GetXYZvrp(int idx) const { return vXYZvrp(idx); }
|
2002-03-20 12:45:02 +00:00
|
|
|
inline double GetXYZep(int idx) const { return vXYZep(idx); }
|
2001-12-24 13:54:55 +00:00
|
|
|
inline void SetAircraftName(string name) {AircraftName = name;}
|
2002-06-08 03:14:03 +00:00
|
|
|
|
2005-05-22 08:06:47 +00:00
|
|
|
double GetNlf(void);
|
2002-06-08 03:14:03 +00:00
|
|
|
|
2001-11-30 17:49:37 +00:00
|
|
|
inline FGColumnVector3& GetNwcg(void) { return vNwcg; }
|
2002-06-08 03:14:03 +00:00
|
|
|
|
2002-03-20 12:45:02 +00:00
|
|
|
void bind(void);
|
|
|
|
void unbind(void);
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
1999-06-17 20:07:19 +00:00
|
|
|
private:
|
2001-10-05 20:19:59 +00:00
|
|
|
FGColumnVector3 vMoments;
|
|
|
|
FGColumnVector3 vForces;
|
|
|
|
FGColumnVector3 vXYZrp;
|
2004-01-14 22:09:39 +00:00
|
|
|
FGColumnVector3 vXYZvrp;
|
2001-10-05 20:19:59 +00:00
|
|
|
FGColumnVector3 vXYZep;
|
|
|
|
FGColumnVector3 vDXYZcg;
|
|
|
|
FGColumnVector3 vBodyAccel;
|
2001-11-06 22:33:05 +00:00
|
|
|
FGColumnVector3 vNcg;
|
2001-11-30 17:49:37 +00:00
|
|
|
FGColumnVector3 vNwcg;
|
2001-11-06 22:33:05 +00:00
|
|
|
|
2001-11-20 22:34:24 +00:00
|
|
|
double WingArea, WingSpan, cbar, WingIncidence;
|
|
|
|
double HTailArea, VTailArea, HTailArm, VTailArm;
|
|
|
|
double lbarh,lbarv,vbarh,vbarv;
|
2000-04-24 23:49:06 +00:00
|
|
|
string AircraftName;
|
Updates from the Jon and Tony show.
Tony submitted:
JSBsim:
Added trimming routine, it is longitudinal & in-air only at this point
Added support for taking wind & weather data from external source
Added support for flaps.
Added independently settable pitch trim
Added alphamin and max to config file, stall modeling and warning to
follow
c172.cfg:
Flaps!
Adjusted Cmo, model should be speed stable now
FG:
Hooked up Christian's weather code, should be using it soon.
Hooked up the trimming routine. Note that the X-15 will not trim.
This is not a model or trimming routine deficiency, just the
nature of the X-15
The trimming routine sets the pitch trim and and throttle at startup.
The throttle is set using Norman's code for the autothrottle so the
autothrottle is on by default. --notrim will turn it off.
Added --vc, --mach, and --notrim switches
(vc is airspeed in knots)
uBody, vBody, and wBody are still supported, last one entered
on the command line counts, i.e. you can set vc or mach or u,v,
and w but any combination will be ignored.
2000-05-16 21:35:11 +00:00
|
|
|
|
2001-12-13 04:48:34 +00:00
|
|
|
void Debug(int from);
|
1999-06-17 20:07:19 +00:00
|
|
|
};
|
|
|
|
|
2003-01-24 12:55:28 +00:00
|
|
|
} // namespace JSBSim
|
2000-11-03 23:02:47 +00:00
|
|
|
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
1999-06-17 20:07:19 +00:00
|
|
|
#endif
|
2001-03-30 01:04:50 +00:00
|
|
|
|