]> git.mxchange.org Git - flightgear.git/blob - External/external.hxx
Modifications to incorporate Jon S. Berndts flight model code.
[flightgear.git] / External / external.hxx
1 // external.hxx -- the "external" flight model (driven from other
2 //                 external input)
3 //
4 // Written by Curtis Olson, started December 1998.
5 //
6 // Copyright (C) 1998  Curtis L. Olson  - curt@flightgear.org
7 //
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.
12 //
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.
17 //
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.
21 //
22 // $Id$
23 // (Log is kept at end of this file)
24
25
26 #ifndef _EXTERNAL_HXX
27 #define _EXTERNAL_HXX
28
29
30 #ifndef __cplusplus                                                          
31 # error This library requires C++
32 #endif                                   
33
34
35 #include <Time/fg_time.hxx>
36 #include <Time/timestamp.hxx>
37
38
39 /*
40 class fgFDM_EXTERNAL {
41
42 public:
43
44     // Time Stamp
45
46     // The time at which these values are correct (for extrapolating
47     // later frames between position updates)
48     FGTimeStamp t;
49
50     // Positions
51
52     // placement in geodetic coordinates
53     double Latitude;
54     double Longitude;
55     double Altitude;
56
57     // orientation in euler angles relative to local frame (or ground
58     // position)
59     double Phi;       // roll
60     double Theta;     // pitch
61     double Psi;       // heading
62
63     // Velocities
64
65     // velocities in geodetic coordinates
66     double Latitude_dot;   // rad/sec
67     double Longitude_dot;  // rad/sec
68     double Altitude_dot;   // feet/sec
69
70     // rotational rates
71     double Phi_dot;
72     double Theta_dot;
73     double Psi_dot;
74 };
75 */
76
77
78 // reset flight params to a specific position 
79 void fgExternalInit( FGInterface& f );
80
81
82 #endif // _EXTERNAL_HXX
83
84
85 // $Log$
86 // Revision 1.6  1999/02/05 21:29:04  curt
87 // Modifications to incorporate Jon S. Berndts flight model code.
88 //
89 // Revision 1.5  1999/01/19 17:52:12  curt
90 // Working on being able to extrapolate a new position and orientation
91 // based on a position, orientation, and time offset.
92 //
93 // Revision 1.4  1999/01/09 13:37:37  curt
94 // Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
95 //
96 // Revision 1.3  1998/12/05 15:54:14  curt
97 // Renamed class fgFLIGHT to class FGState as per request by JSB.
98 //
99 // Revision 1.2  1998/12/05 14:18:47  curt
100 // added an fgTIMESTAMP to define when this record is valid.
101 //
102 // Revision 1.1  1998/12/04 01:28:49  curt
103 // Initial revision.
104 //