Scaling inputs to JSBsim to get a bit more realistic results.
This commit is contained in:
parent
243b73c10b
commit
a7abe629cf
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue