]> git.mxchange.org Git - flightgear.git/commitdiff
Scaling inputs to JSBsim to get a bit more realistic results.
authorcurt <curt>
Sat, 7 Aug 1999 18:28:21 +0000 (18:28 +0000)
committercurt <curt>
Sat, 7 Aug 1999 18:28:21 +0000 (18:28 +0000)
src/FDM/JSBSim.cxx
src/FDM/LaRCsim.cxx

index 62289168ab157067e535bea24b9498fcf7fdb113..b60d7870bf913f09334ffea8dd8a28c2fb0c54a5 100644 (file)
@@ -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
index 6daf0aa6d32bb6d6c40e4b2fb1fbb7ce02ab4383..16baf9a1cb2864c74a829371f163f175fcf74bbd 100644 (file)
@@ -60,7 +60,7 @@ int fgLaRCsimUpdate(FGInterface& f, int multiloop) {
     Brake_pct = controls.get_brake( 0 );
 
     // Inform LaRCsim of the local terrain altitude
-    Runway_altitude =   f.get_Runway_altitude();
+    Runway_altitude = f.get_Runway_altitude();
 
     // old -- FGInterface_2_LaRCsim() not needed except for Init()
     // translate FG to LaRCsim structure