2000-08-28 20:39:55 +00:00
|
|
|
// 10520d test program
|
|
|
|
|
2000-09-28 22:49:33 +00:00
|
|
|
#include "IO360.hxx"
|
2000-08-28 20:39:55 +00:00
|
|
|
|
|
|
|
int main() {
|
2000-10-16 20:01:23 +00:00
|
|
|
FGNewEngine e;
|
2000-08-28 20:39:55 +00:00
|
|
|
|
2000-09-28 22:49:33 +00:00
|
|
|
e.init( 1.0 / 120.0 );
|
2000-08-28 20:39:55 +00:00
|
|
|
|
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-28 20:39:55 +00:00
|
|
|
|
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;
|
2000-08-28 20:39:55 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|