]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim.cxx
Updates to interface to pass in radians for starting position.
[flightgear.git] / src / FDM / JSBSim.cxx
index 62289168ab157067e535bea24b9498fcf7fdb113..6a66b753d13763b3f4c7a40ec1de8b1cbbda1440 100644 (file)
@@ -78,8 +78,8 @@ int fgJSBsimInit(double dt, FGInterface& f) {
       f.get_Phi(),
       f.get_Theta(),
       f.get_Psi(),
-      f.get_Latitude() * RAD_TO_DEG,
-      f.get_Longitude() * RAD_TO_DEG,
+      f.get_Latitude(),
+      f.get_Longitude(),
       f.get_Altitude()
     );
 
@@ -112,14 +112,14 @@ int fgJSBsimUpdate(FGInterface& f, int multiloop) {
     }
 
     // copy control positions into the JSBsim structure
-    FDMExec.GetFCS()->SetDa( controls.get_aileron() );
+    FDMExec.GetFCS()->SetDa( controls.get_aileron() / 10.0 );
     FDMExec.GetFCS()->SetDe( controls.get_elevator() 
                             + controls.get_elevator_trim() );
-    FDMExec.GetFCS()->SetDr( controls.get_rudder() );
+    FDMExec.GetFCS()->SetDr( controls.get_rudder() / 10.0 );
     FDMExec.GetFCS()->SetDf( 0.0 );
     FDMExec.GetFCS()->SetDs( 0.0 );
     FDMExec.GetFCS()->SetThrottle( FGControls::ALL_ENGINES, 
-                                  controls.get_throttle( 0 ) );
+                                  controls.get_throttle( 0 ) * 100.0 );
     // FCS->SetBrake( controls.get_brake( 0 ) );
 
     // Inform JSBsim of the local terrain altitude