]> git.mxchange.org Git - flightgear.git/blob - src/FDM/External.cxx
Code clean ups relating to FGOptions ... and moved it into globals-> space.
[flightgear.git] / src / FDM / External.cxx
1 // External.cxx -- interface to the "External"-ly driven flight model
2 //
3 // Written by Curtis Olson, started November 1999.
4 //
5 // Copyright (C) 1999  Curtis L. Olson  - curt@flightgear.org
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22
23
24 #include "External.hxx"
25
26
27 // Initialize the External flight model, dt is the time increment
28 // for each subsequent iteration through the EOM
29 bool FGExternal::init( double dt ) {
30     // cout << "FGExternal::init()" << endl;
31
32     // set valid time for this record
33     stamp_time();
34
35     return true;
36 }
37
38
39 // Run an iteration of the EOM.  This is essentially a NOP here
40 // because these values are getting filled in elsewhere based on
41 // external input.
42 bool FGExternal::update( int multiloop ) {
43     // cout << "FGExternal::update()" << endl;
44
45     // double time_step = (1.0 / globals->get_options()->get_model_hz())
46     //                     * multiloop;
47
48
49     return true;
50 }