]> git.mxchange.org Git - flightgear.git/blob - src/FDM/engine.cxx
b) FDM - ada.cxx, ada.hxx have been updated with the faux, daux and iaux arrays that...
[flightgear.git] / src / FDM / engine.cxx
1 // 10520d test program
2
3 #include "IO360.hxx"
4
5 int main() {
6     FGNewEngine e;
7
8     e.init( 1.0 / 120.0 );
9
10     e.set_IAS( 80 );
11     e.set_Throttle_Lever_Pos( 50.0 );
12     e.set_Propeller_Lever_Pos( 100.0 );
13     e.set_Mixture_Lever_Pos( 75 );
14
15     e.update();
16
17     // cout << "Rho = " << e.get_Rho();
18     cout << "Throttle = " << 100.0;
19     cout << "  RPM = " << e.get_RPM();
20     cout << "  Thrust = " << e.get_FGProp1_Thrust() << endl;
21
22     return 0;
23 }