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);
|
2006-12-09 20:37:59 +00:00
|
|
|
~YASim();
|
2001-12-01 06:22:24 +00:00
|
|
|
|
|
|
|
// 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:
|
2003-02-22 20:29:43 +00:00
|
|
|
|
2001-12-01 06:22:24 +00:00
|
|
|
void report();
|
|
|
|
void copyFromYASim();
|
|
|
|
void copyToYASim(bool copyState);
|
|
|
|
|
|
|
|
yasim::FGFDM* _fdm;
|
|
|
|
float _dt;
|
2003-02-22 20:29:43 +00:00
|
|
|
enum {
|
|
|
|
NED,
|
|
|
|
UVW,
|
|
|
|
KNOTS,
|
|
|
|
MACH
|
|
|
|
} _speed_set;
|
|
|
|
|
2001-12-01 06:22:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _YASIM_HXX
|