#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
+#include <simgear/scene/model/location.hxx>
+#include <simgear/scene/model/placement.hxx>
-#include <Main/fg_props.hxx>
#include <Aircraft/aircraft.hxx>
#include <Controls/controls.hxx>
#include <FDM/flight.hxx>
#include <FDM/LaRCsim/ls_interface.h>
#include <FDM/LaRCsimIC.hxx>
#include <FDM/UIUCModel/uiuc_aircraft.h>
+#include <Main/fg_props.hxx>
#include <Model/acmodel.hxx>
#include "IO360.hxx"
#include "LaRCsim.hxx"
+
FGLaRCsim::FGLaRCsim( double dt ) {
// set_delta_t( dt );
// Fake control-surface positions
fgSetDouble("/surface-positions/flap-pos-norm",
- fgGetDouble("/controls/flaps"));
+ fgGetDouble("/controls/flight/flaps"));
// FIXME: ignoring trim
fgSetDouble("/surface-positions/elevator-pos-norm",
- fgGetDouble("/controls/elevator"));
+ fgGetDouble("/controls/flight/elevator"));
// FIXME: ignoring trim
fgSetDouble("/surface-positions/left-aileron-pos-norm",
- fgGetDouble("/controls/aileron"));
+ fgGetDouble("/controls/flight/aileron"));
// FIXME: ignoring trim
fgSetDouble("/surface-positions/right-aileron-pos-norm",
- -1 * fgGetDouble("/controls/aileron"));
+ -1 * fgGetDouble("/controls/flight/aileron"));
// FIXME: ignoring trim
fgSetDouble("/surface-positions/rudder-pos-norm",
- fgGetDouble("/controls/rudder"));
+ fgGetDouble("/controls/flight/rudder"));
// copy engine state values onto "bus"
fgSetDouble("/engines/engine/rpm", eng.get_RPM());
globals->get_controls()->set_rudder(Rudder_pedal);
// controls.set_rudder(Rudder_pedal);
}
- if (Throttle_pct_input) {
+ if (pilot_throttle_no) {
globals->get_controls()->set_throttle(0,Throttle_pct);
// controls.set_throttle(0,Throttle_pct);
}