]> git.mxchange.org Git - flightgear.git/blob - src/FDM/YASim/YASim.hxx
Initial revision of Andy Ross's YASim code. This is (Y)et (A)nother Flight
[flightgear.git] / src / FDM / YASim / YASim.hxx
1 #ifndef _YASIM_HXX
2 #define _YASIM_HXX
3
4 #include <FDM/flight.hxx>
5
6 namespace yasim { class FGFDM; };
7
8 class YASim : public FGInterface {
9 public:
10     YASim(double dt);
11
12     // Load externally set stuff into the FDM
13     virtual void init();
14
15     // Run an iteration
16     virtual bool update(int iterations);
17
18  private:
19     void report();
20     void copyFromYASim();
21     void copyToYASim(bool copyState);
22
23     void printDEBUG();
24
25     yasim::FGFDM* _fdm;
26     int _updateCount;
27     float _dt;
28 };
29
30 #endif // _YASIM_HXX