| 1 | // NullFDM.hxx -- a do-nothing flight model, used as a placeholder if the |
| 2 | // action is externally driven. |
| 3 | // |
| 4 | // Written by Curtis Olson, started November 1999. |
| 5 | // |
| 6 | // Copyright (C) 1999 - 2001 Curtis L. Olson - http://www.flightgear.org/~curt |
| 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 21 | // |
| 22 | // $Id$ |
| 23 | |
| 24 | |
| 25 | #ifndef _NULLFDM_HXX |
| 26 | #define _NULLFDM_HXX |
| 27 | |
| 28 | |
| 29 | #include "flight.hxx" |
| 30 | |
| 31 | |
| 32 | class FGNullFDM : public FGInterface |
| 33 | { |
| 34 | public: |
| 35 | FGNullFDM( double dt ); |
| 36 | ~FGNullFDM(); |
| 37 | |
| 38 | // Subsystem API. |
| 39 | void init() override; |
| 40 | void update(double dt) override; |
| 41 | |
| 42 | // Subsystem identification. |
| 43 | static const char* staticSubsystemClassId() { return "null"; } |
| 44 | }; |
| 45 | |
| 46 | #endif // _NULLFDM_HXX |