]> git.mxchange.org Git - flightgear.git/blob - src/FDM/ADA.hxx
Get rid of the double comma's for the file section of the generic protocol also.
[flightgear.git] / src / FDM / ADA.hxx
1 // ADA.hxx -- interface to the "External"-ly driven ADA flight model
2 //
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License as
5 // published by the Free Software Foundation; either version 2 of the
6 // License, or (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16 //
17 // $Id$
18
19
20 #ifndef _ADA_HXX
21 #define _ADA_HXX
22
23
24 class SGSocket;
25
26 #include <FDM/flight.hxx>
27
28
29 class FGADA: public FGInterface {
30
31 private:
32         
33     SGSocket *fdmsock;
34
35     // Auxilliary Flight Model parameters, basically for HUD
36     double        aux1;           // auxilliary flag
37     double        aux2;           // auxilliary flag
38     double        aux3;           // auxilliary flag
39     double        aux4;           // auxilliary flag
40     double        aux5;           // auxilliary flag
41     double        aux6;           // auxilliary flag
42     double        aux7;           // auxilliary flag
43     double        aux8;           // auxilliary flag
44     float        aux9;            // auxilliary flag
45     float        aux10;           // auxilliary flag
46     float        aux11;           // auxilliary flag
47     float        aux12;           // auxilliary flag
48     float        aux13;           // auxilliary flag
49     float        aux14;           // auxilliary flag
50     float        aux15;           // auxilliary flag
51     float        aux16;           // auxilliary flag
52     float        aux17;           // auxilliary flag
53     float        aux18;           // auxilliary flag
54     int          iaux1;           // auxilliary flag
55     int          iaux2;           // auxilliary flag
56     int          iaux3;           // auxilliary flag
57     int          iaux4;           // auxilliary flag
58     int          iaux5;           // auxilliary flag
59     int          iaux6;           // auxilliary flag
60     int          iaux7;           // auxilliary flag
61     int          iaux8;           // auxilliary flag
62     int          iaux9;           // auxilliary flag
63     int         iaux10;           // auxilliary flag
64     int         iaux11;           // auxilliary flag
65     int         iaux12;           // auxilliary flag
66
67     // copy FDM state to FGADA structures
68     bool copy_to_FGADA();
69
70     // copy FDM state from FGADA structures
71     bool copy_from_FGADA();
72
73 public:
74
75     FGADA( double dt );
76     ~FGADA();
77
78     // reset flight params to a specific position 
79     void init();
80
81     // update position based on inputs, positions, velocities, etc.
82     void update(double dt);
83
84 };
85
86
87 #endif // _ADA_HXX