1
0
Fork 0
flightgear/src/FDM/YASim/YASim.hxx
david c07f22ea16 Begin supporting a starting speed for YASim:
- NED and UVW are working correctly
- knots is giving true airspeed instead of calibrated airspeed
- mach is not working at all

This desperately needs a trimming routine.
2003-02-22 20:29:43 +00:00

38 lines
592 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);
void printDEBUG();
yasim::FGFDM* _fdm;
float _dt;
enum {
NED,
UVW,
KNOTS,
MACH
} _speed_set;
};
#endif // _YASIM_HXX