1
0
Fork 0
flightgear/src/FDM/YASim/YASim.hxx

31 lines
509 B
C++
Raw Normal View History

#ifndef _YASIM_HXX
#define _YASIM_HXX
#include <FDM/flight.hxx>
namespace yasim { class FGFDM; };
class YASim : public FGInterface {
public:
YASim(double dt);
// Load externally set stuff into the FDM
virtual void init();
// Run an iteration
virtual void update(int iterations);
private:
void report();
void copyFromYASim();
void copyToYASim(bool copyState);
void printDEBUG();
yasim::FGFDM* _fdm;
int _updateCount;
float _dt;
};
#endif // _YASIM_HXX