| 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 | |
| 24 | class SGSocket; |
| 25 | |
| 26 | #include <FDM/flight.hxx> |
| 27 | |
| 28 | |
| 29 | class FGADA : public FGInterface |
| 30 | { |
| 31 | private: |
| 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 | |
| 72 | public: |
| 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 |