1
0
Fork 0
flightgear/src/FDM/YASim/YASim.hxx
frohlich db2d4a7a68 Fix some sim time issues with the locations of the ground cache and the
queries in there.

Modified Files:
 	flight.cxx flight.hxx groundcache.cxx
	groundcache.hxx JSBSim/JSBSim.cxx YASim/YASim.cxx
	YASim/YASim.hxx
2009-03-18 08:00:08 +01:00

38 lines
603 B
C++

#ifndef _YASIM_HXX
#define _YASIM_HXX
#include <FDM/flight.hxx>
namespace yasim { class FGFDM; };
class YASim : public FGInterface {
public:
YASim(double dt);
~YASim();
// Load externally set stuff into the FDM
virtual void init();
virtual void bind();
// Run an iteration
virtual void update(double dt);
private:
void report();
void copyFromYASim();
void copyToYASim(bool copyState);
yasim::FGFDM* _fdm;
float _dt;
double _simTime;
enum {
NED,
UVW,
KNOTS,
MACH
} _speed_set;
};
#endif // _YASIM_HXX