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>
38 class fgFDM_EXTERNAL {
44 // The time at which these values are correct (for extrapolating
45 // later frames between position updates)
50 // placement in geodetic coordinates
55 // orientation in euler angles relative to local frame (or ground
58 double Theta; // pitch
59 double Psi; // heading
63 // velocity relative to the local aircraft's coordinate system
68 // rotational rates relative to the coordinate system the body lives in
75 // acceleration relative to the local aircraft's coordinate system
80 // rotational acceleration relative to the coordinate system the
88 // reset flight params to a specific position
89 void fgExternalInit(fgFLIGHT& f, double dt);
91 // update position based on inputs, positions, velocities, etc.
92 void fgExternalUpdate( fgFLIGHT& f, int multiloop );
95 #endif // _EXTERNAL_HXX
99 // Revision 1.1 1998/12/04 01:28:49 curt