Started work on an interactive property manager traverser/setter.
#endif
#include <simgear/constants.h>
+#include <simgear/math/sg_types.hxx>
#include <simgear/misc/props.hxx>
-#include <simgear/math/fg_types.hxx>
#include <Aircraft/aircraft.hxx>
#include <Main/options.hxx>
#include <Main/bfi.hxx>
#include <FDM/LaRCsim/ls_generic.h>
#include <FDM/LaRCsim/ls_interface.h>
-#include "10520d.hxx"
+#include "IO360.hxx"
#include "LaRCsim.hxx"
-// #define USE_NEW_ENGINE_CODE 1
+#define USE_NEW_ENGINE_CODE 1
FGEngine eng;
// 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;
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
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/ephemeris/ephemeris.hxx>
-#include <simgear/math/fg_types.hxx>
+#include <simgear/math/sg_types.hxx>
#include <simgear/misc/props.hxx>
#include <simgear/timing/sg_time.hxx>
#include <simgear/io/sg_file.hxx>
#include <simgear/io/sg_serial.hxx>
#include <simgear/io/sg_socket.hxx>
-
-#include <simgear/math/fg_types.hxx>
+#include <simgear/math/sg_types.hxx>
#include <Main/options.hxx>
extern bool global_fullscreen;
#endif
-#include <simgear/math/fg_types.hxx>
+#include <simgear/math/sg_types.hxx>
#include <simgear/timing/sg_time.hxx>
#include STL_STRING
# include <config.h>
#endif
-#include <simgear/math/fg_types.hxx>
+#include <simgear/math/sg_types.hxx>
#include <iostream>
FG_USING_NAMESPACE(std);
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 \
# include <iostream>
#endif
-#include <simgear/math/fg_types.hxx>
+#include <simgear/math/sg_types.hxx>
FG_USING_NAMESPACE(std);