6d4e03361a
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.
23 lines
449 B
C++
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;
|
|
}
|