FlightGear next
ADA.hxx
Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16//
17// $Id$
18
19
20#ifndef _ADA_HXX
21#define _ADA_HXX
22
23
24class SGSocket;
25
26#include <FDM/flight.hxx>
27
28
29class FGADA : public FGInterface
30{
31private:
32 SGSocket *fdmsock;
33#if 0
34 // Auxilliary Flight Model parameters, basically for HUD
35 double aux1; // auxilliary flag
36 double aux2; // auxilliary flag
37 double aux3; // auxilliary flag
38 double aux4; // auxilliary flag
39 double aux5; // auxilliary flag
40 double aux6; // auxilliary flag
41 double aux7; // auxilliary flag
42 double aux8; // auxilliary flag
43 float aux9; // auxilliary flag
44 float aux10; // auxilliary flag
45 float aux11; // auxilliary flag
46 float aux12; // auxilliary flag
47 float aux13; // auxilliary flag
48 float aux14; // auxilliary flag
49 float aux15; // auxilliary flag
50 float aux16; // auxilliary flag
51 float aux17; // auxilliary flag
52 float aux18; // auxilliary flag
53 int iaux1; // auxilliary flag
54 int iaux2; // auxilliary flag
55 int iaux3; // auxilliary flag
56 int iaux4; // auxilliary flag
57 int iaux5; // auxilliary flag
58 int iaux6; // auxilliary flag
59 int iaux7; // auxilliary flag
60 int iaux8; // auxilliary flag
61 int iaux9; // auxilliary flag
62 int iaux10; // auxilliary flag
63 int iaux11; // auxilliary flag
64 int iaux12; // auxilliary flag
65#endif
66 // copy FDM state to FGADA structures
67 bool copy_to_FGADA();
68
69 // copy FDM state from FGADA structures
70 bool copy_from_FGADA();
71
72public:
73 FGADA( double dt );
74 ~FGADA();
75
76 // Subsystem API.
77 void init() override;
78 void update(double dt) override;
79
80 // Subsystem identification.
81 static const char* staticSubsystemClassId() { return "ada"; }
82};
83
84#endif // _ADA_HXX
int iaux5
Definition ADA.cxx:95
int iaux11
Definition ADA.cxx:101
float aux12
Definition ADA.cxx:106
double aux4
Definition ADA.cxx:86
int iaux4
Definition ADA.cxx:94
int iaux10
Definition ADA.cxx:100
float aux18
Definition ADA.cxx:112
int iaux7
Definition ADA.cxx:97
int iaux8
Definition ADA.cxx:98
float aux10
Definition ADA.cxx:104
int iaux12
Definition ADA.cxx:102
int iaux1
Definition ADA.cxx:91
float aux15
Definition ADA.cxx:109
float aux14
Definition ADA.cxx:108
float aux17
Definition ADA.cxx:111
int iaux3
Definition ADA.cxx:93
int iaux2
Definition ADA.cxx:92
int iaux9
Definition ADA.cxx:99
int iaux6
Definition ADA.cxx:96
double aux2
Definition ADA.cxx:84
float aux16
Definition ADA.cxx:110
double aux6
Definition ADA.cxx:88
double aux5
Definition ADA.cxx:87
double aux1
Definition ADA.cxx:83
double aux7
Definition ADA.cxx:89
float aux9
Definition ADA.cxx:103
float aux11
Definition ADA.cxx:105
double aux8
Definition ADA.cxx:90
double aux3
Definition ADA.cxx:85
float aux13
Definition ADA.cxx:107
static const char * staticSubsystemClassId()
Definition ADA.hxx:81
void update(double dt) override
Definition ADA.cxx:211
FGADA(double dt)
Definition ADA.cxx:165
void init() override
Definition ADA.cxx:179
~FGADA()
Definition ADA.cxx:172