diff --git a/src/Cockpit/steam.cxx b/src/Cockpit/steam.cxx index 23c1bc1e8..31551c354 100644 --- a/src/Cockpit/steam.cxx +++ b/src/Cockpit/steam.cxx @@ -30,8 +30,8 @@ #endif #include +#include #include -#include #include #include
#include
diff --git a/src/FDM/LaRCsim.cxx b/src/FDM/LaRCsim.cxx index 309840807..b79998886 100644 --- a/src/FDM/LaRCsim.cxx +++ b/src/FDM/LaRCsim.cxx @@ -31,11 +31,11 @@ #include #include -#include "10520d.hxx" +#include "IO360.hxx" #include "LaRCsim.hxx" -// #define USE_NEW_ENGINE_CODE 1 +#define USE_NEW_ENGINE_CODE 1 FGEngine eng; @@ -89,12 +89,24 @@ int FGLaRCsim::update( int multiloop ) { // update simple engine model eng.set_IAS( V_calibrated_kts ); eng.set_Throttle_Lever_Pos( controls.get_throttle( 0 ) * 100.0 ); - eng.set_Propeller_Lever_Pos( 95 ); - eng.set_Mixture_Lever_Pos( 100 ); + eng.set_Propeller_Lever_Pos( 100 ); + eng.set_Mixture_Lever_Pos( 80 ); eng.update(); - cout << " Thrust = " << eng.get_FGProp1_Thrust() << endl; - F_X_engine = eng.get_FGProp1_Thrust() * 1.5; -#endif + +#if 0 + cout << "Throttle = " << controls.get_throttle( 0 ) * 100.0; + cout << " Mixture = " << 80; + cout << " RPM = " << eng.get_RPM(); + cout << " MP = " << eng.get_Manifold_Pressure(); + cout << " HP = " << ( eng.get_MaxHP() * eng.get_Percentage_Power() + / 100.0 ); + cout << " EGT = " << eng.get_EGT(); + cout << " Thrust (N) " << eng.get_prop_thrust_SI(); // Thrust in Newtons + cout << '\n'; +#endif // 0 + + F_X_engine = eng.get_prop_thrust_SI() * 0.07; +#endif // USE_NEW_ENGINE_CODE double save_alt = 0.0; double time_step = (1.0 / current_options.get_model_hz()) * multiloop; diff --git a/src/FDM/Makefile.am b/src/FDM/Makefile.am index d10e3ac81..edf8ef6d7 100644 --- a/src/FDM/Makefile.am +++ b/src/FDM/Makefile.am @@ -3,10 +3,10 @@ SUBDIRS = Balloon JSBSim LaRCsim UIUCModel noinst_LIBRARIES = libFlight.a libFlight_a_SOURCES = \ - 10520d.cxx 10520d.hxx \ Balloon.cxx Balloon.h \ External.cxx External.hxx \ flight.cxx flight.hxx \ + IO360.cxx IO360.hxx \ JSBSim.cxx JSBSim.hxx \ LaRCsim.cxx LaRCsim.hxx \ MagicCarpet.cxx MagicCarpet.hxx diff --git a/src/Main/bfi.cxx b/src/Main/bfi.cxx index 989b0769f..7a492938e 100644 --- a/src/Main/bfi.cxx +++ b/src/Main/bfi.cxx @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 24383e7a1..71687c779 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -30,8 +30,7 @@ #include #include #include - -#include +#include #include
diff --git a/src/Main/options.hxx b/src/Main/options.hxx index 3f931baf6..569a1f231 100644 --- a/src/Main/options.hxx +++ b/src/Main/options.hxx @@ -46,7 +46,7 @@ extern bool global_fullscreen; #endif -#include +#include #include #include STL_STRING diff --git a/src/Main/save.hxx b/src/Main/save.hxx index 72f7e9e8e..56626d4a4 100644 --- a/src/Main/save.hxx +++ b/src/Main/save.hxx @@ -31,7 +31,7 @@ # include #endif -#include +#include #include FG_USING_NAMESPACE(std); diff --git a/src/Network/Makefile.am b/src/Network/Makefile.am index 7a049e9b3..ce310af36 100644 --- a/src/Network/Makefile.am +++ b/src/Network/Makefile.am @@ -5,6 +5,7 @@ libNetwork_a_SOURCES = \ native.cxx native.hxx \ garmin.cxx garmin.hxx \ nmea.cxx nmea.hxx \ + props.cxx props.hxx \ pve.cxx pve.hxx \ ray.cxx ray.hxx \ rul.cxx rul.hxx \ diff --git a/src/NetworkOLK/features.cxx b/src/NetworkOLK/features.cxx index 3d202f9ba..1901a298b 100644 --- a/src/NetworkOLK/features.cxx +++ b/src/NetworkOLK/features.cxx @@ -29,7 +29,7 @@ # include #endif -#include +#include FG_USING_NAMESPACE(std);