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>
40 class fgFDM_EXTERNAL {
46 // The time at which these values are correct (for extrapolating
47 // later frames between position updates)
52 // placement in geodetic coordinates
57 // orientation in euler angles relative to local frame (or ground
60 double Theta; // pitch
61 double Psi; // heading
65 // velocities in geodetic coordinates
66 double Latitude_dot; // rad/sec
67 double Longitude_dot; // rad/sec
68 double Altitude_dot; // feet/sec
78 // reset flight params to a specific position
79 void fgExternalInit( FGState& f );
82 #endif // _EXTERNAL_HXX
86 // Revision 1.5 1999/01/19 17:52:12 curt
87 // Working on being able to extrapolate a new position and orientation
88 // based on a position, orientation, and time offset.
90 // Revision 1.4 1999/01/09 13:37:37 curt
91 // Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
93 // Revision 1.3 1998/12/05 15:54:14 curt
94 // Renamed class fgFLIGHT to class FGState as per request by JSB.
96 // Revision 1.2 1998/12/05 14:18:47 curt
97 // added an fgTIMESTAMP to define when this record is valid.
99 // Revision 1.1 1998/12/04 01:28:49 curt