1
0
Fork 0
flightgear/src/FDM/engine.cxx

24 lines
452 B
C++
Raw Normal View History

// 10520d test program
#include "IO360.hxx"
int main() {
FGNewEngine e;
e.init( 1.0 / 120.0 );
2000-08-29 03:15:51 +00:00
e.set_IAS( 80 );
e.set_Throttle_Lever_Pos( 50.0 );
e.set_Propeller_Lever_Pos( 100.0 );
e.set_Mixture_Lever_Pos( 75 );
2000-08-29 03:15:51 +00:00
e.update();
// cout << "Rho = " << e.get_Rho();
cout << "Throttle = " << 100.0;
cout << " RPM = " << e.get_RPM();
cout << " Thrust = " << e.get_FGProp1_Thrust() << endl;
return 0;
}