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()
);
}
// 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