2001-12-01 06:22:24 +00:00
|
|
|
#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();
|
2001-12-24 13:54:03 +00:00
|
|
|
virtual void bind();
|
2001-12-01 06:22:24 +00:00
|
|
|
|
|
|
|
// Run an iteration
|
2002-05-11 16:28:50 +00:00
|
|
|
virtual void update(double dt);
|
2001-12-01 06:22:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void report();
|
|
|
|
void copyFromYASim();
|
|
|
|
void copyToYASim(bool copyState);
|
|
|
|
|
|
|
|
void printDEBUG();
|
|
|
|
|
|
|
|
yasim::FGFDM* _fdm;
|
|
|
|
float _dt;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _YASIM_HXX
|