]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/LaRCsim.cxx
- Added "SG" prefix to sound classes that recently moved to SimGear.
[flightgear.git] / src / FDM / LaRCsim.cxx
index 43223bf4cf9bfbde1f8fc6a0df2a7a126bf3e165..3a27172e4bf7ad92f3bcd735c7f73143e24b32b1 100644 (file)
@@ -24,8 +24,9 @@
 
 #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 );
 
@@ -108,19 +112,19 @@ void FGLaRCsim::update( double 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());
@@ -566,7 +570,7 @@ bool FGLaRCsim::copy_from_LaRCsim() {
             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);
         }