1 // external.hxx -- the "external" flight model (driven from other
4 // Written by Curtis Olson, started December 1998.
6 // Copyright (C) 1998 Curtis L. Olson - curt@flightgear.org
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 // (Log is kept at end of this file)
31 # error This library requires C++
35 #include <Time/fg_time.hxx>
36 #include <Time/timestamp.hxx>
39 class fgFDM_EXTERNAL {
45 // The time at which these values are correct (for extrapolating
46 // later frames between position updates)
51 // placement in geodetic coordinates
56 // orientation in euler angles relative to local frame (or ground
59 double Theta; // pitch
60 double Psi; // heading
64 // velocity relative to the local aircraft's coordinate system
69 // rotational rates relative to the coordinate system the body lives in
76 // acceleration relative to the local aircraft's coordinate system
81 // rotational acceleration relative to the coordinate system the
89 // reset flight params to a specific position
90 void fgExternalInit( FGState& f, double dt );
92 // update position based on inputs, positions, velocities, etc.
93 void fgExternalUpdate( FGState& f, int multiloop );
96 #endif // _EXTERNAL_HXX
100 // Revision 1.4 1999/01/09 13:37:37 curt
101 // Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
103 // Revision 1.3 1998/12/05 15:54:14 curt
104 // Renamed class fgFLIGHT to class FGState as per request by JSB.
106 // Revision 1.2 1998/12/05 14:18:47 curt
107 // added an fgTIMESTAMP to define when this record is valid.
109 // Revision 1.1 1998/12/04 01:28:49 curt