April 25, 2000 updates from Jon.
This commit is contained in:
parent
8f71890c08
commit
e9b2b521ca
1 changed files with 17 additions and 15 deletions
|
@ -119,12 +119,14 @@ int FGJSBsim::update( int multiloop ) {
|
|||
}
|
||||
|
||||
// copy control positions into the JSBsim structure
|
||||
|
||||
FDMExec.GetFCS()->SetDaCmd( controls.get_aileron());
|
||||
FDMExec.GetFCS()->SetDeCmd( controls.get_elevator()
|
||||
+ controls.get_elevator_trim() );
|
||||
FDMExec.GetFCS()->SetDrCmd( controls.get_rudder());
|
||||
FDMExec.GetFCS()->SetDfCmd( 0.0 );
|
||||
// FDMExec.GetFCS()->SetDsCmd( 0.0 );
|
||||
FDMExec.GetFCS()->SetDsbCmd( 0.0 );
|
||||
FDMExec.GetFCS()->SetDspCmd( 0.0 );
|
||||
FDMExec.GetFCS()->SetThrottleCmd( FGControls::ALL_ENGINES,
|
||||
controls.get_throttle( 0 ) * 100.0 );
|
||||
// FCS->SetBrake( controls.get_brake( 0 ) );
|
||||
|
@ -180,9 +182,9 @@ int FGJSBsim::copy_to_JSBsim() {
|
|||
int FGJSBsim::copy_from_JSBsim() {
|
||||
|
||||
// Velocities
|
||||
// set_Velocities_Local( FDMExec.GetPosition()->GetVn(),
|
||||
// FDMExec.GetPosition()->GetVe(),
|
||||
// FDMExec.GetPosition()->GetVd() );
|
||||
set_Velocities_Local( FDMExec.GetPosition()->GetVn(),
|
||||
FDMExec.GetPosition()->GetVe(),
|
||||
FDMExec.GetPosition()->GetVd() );
|
||||
// set_Velocities_Ground( V_north_rel_ground, V_east_rel_ground,
|
||||
// V_down_rel_ground );
|
||||
// set_Velocities_Local_Airmass( V_north_airmass, V_east_airmass,
|
||||
|
|
Loading…
Add table
Reference in a new issue