From 2c595081560143927271b55f458a877d92df1503 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 26 Sep 2000 23:39:29 +0000 Subject: [PATCH] Renamed fg_types.hxx -> sg_types.hxx Started work on an interactive property manager traverser/setter. --- src/Cockpit/steam.cxx | 2 +- src/FDM/LaRCsim.cxx | 26 +++++++++++++++++++------- src/FDM/Makefile.am | 2 +- src/Main/bfi.cxx | 2 +- src/Main/fg_io.cxx | 3 +-- src/Main/options.hxx | 2 +- src/Main/save.hxx | 2 +- src/Network/Makefile.am | 1 + src/NetworkOLK/features.cxx | 2 +- 9 files changed, 27 insertions(+), 15 deletions(-) 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);