1
0
Fork 0
flightgear/src/FDM/engine.cxx
curt 6d4e03361a Updates to IO360 engine model: Added a couple of guestimates for engine
and prop inertia and passed the timestep from LaRCsim in order to have
the engine rpm behaving according to the applied torque and the laws of
physics.
2000-09-28 22:49:33 +00:00

23 lines
449 B
C++

// 10520d test program
#include "IO360.hxx"
int main() {
FGEngine e;
e.init( 1.0 / 120.0 );
e.set_IAS( 80 );
e.set_Throttle_Lever_Pos( 50.0 );
e.set_Propeller_Lever_Pos( 100.0 );
e.set_Mixture_Lever_Pos( 75 );
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;
}