1
0
Fork 0
flightgear/src/FDM/YASim/YASim.hxx
andy d0af0c5f58 Export a "/sim/crashed" property to indicate a crash.
Yanked some ancient debug code and cleaned up some whitespace while I
was in there.
2003-12-19 19:02:48 +00:00

36 lines
568 B
C++

#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();
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;
enum {
NED,
UVW,
KNOTS,
MACH
} _speed_set;
};
#endif // _YASIM_HXX