]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/atc610x.cxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Network / atc610x.cxx
index 0163f51d77dbf8bc846c82f00803d7e064c2b6d3..570a603307a70a777e2e64fb85fa73dd0583c06a 100644 (file)
@@ -43,8 +43,8 @@
 #include <simgear/debug/logstream.hxx>
 #include <simgear/io/iochannel.hxx>
 #include <simgear/math/sg_types.hxx>
-#include <simgear/misc/props.hxx>
 #include <simgear/misc/sg_path.hxx>
+#include <simgear/props/props.hxx>
 
 #include <Main/fg_props.hxx>
 #include <Main/globals.hxx>
@@ -711,7 +711,7 @@ bool FGATC610x::do_analog_in() {
     // elevator
     tmp = -scale( elevator_center->getIntValue(), elevator_min->getIntValue(),
                   elevator_max->getIntValue(), analog_in_data[5] );
-    fgSetFloat( "/controls/flight/elevator", tmp );
+    fgSetFloat( "/controls/flight/elevator", tmp * 0.5 );
     // cout << "trim = " << analog_in_data[4] << " = " << tmp;
 
     // elevator trim
@@ -1840,7 +1840,7 @@ bool FGATC610x::do_switches() {
     fuel1 = fuel;
     if ( fuel1 == fuel2 && fuel2 == fuel3 ) {
         fgSetBool( "/controls/fuel/tank[0]/fuel-selector", (fuel & 0x01) > 0 );
-        fgSetBool( "/controls/fuel/tabk[1]/fuel-selector", (fuel & 0x02) > 0 );
+        fgSetBool( "/controls/fuel/tank[1]/fuel-selector", (fuel & 0x02) > 0 );
     }
 
     // circuit breakers