From a7abe629cfe24bdba9196aa02dd7dd0616dca930 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 7 Aug 1999 18:28:21 +0000 Subject: [PATCH] Scaling inputs to JSBsim to get a bit more realistic results. --- src/FDM/JSBSim.cxx | 6 +++--- src/FDM/LaRCsim.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FDM/JSBSim.cxx b/src/FDM/JSBSim.cxx index 62289168a..b60d7870b 100644 --- a/src/FDM/JSBSim.cxx +++ b/src/FDM/JSBSim.cxx @@ -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 diff --git a/src/FDM/LaRCsim.cxx b/src/FDM/LaRCsim.cxx index 6daf0aa6d..16baf9a1c 100644 --- a/src/FDM/LaRCsim.cxx +++ b/src/FDM/LaRCsim.cxx @@ -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 -- 2.39.5