#include "JSBsim.hxx"
-double geocRwyRadius;
-
/******************************************************************************/
// Initialize the JSBsim flight model, dt is the time increment for
fgic->SetLatitudeRadIC(get_Latitude());
fgic->SetLongitudeRadIC(get_Longitude());
- FDMExec.GetPosition()->SetRunwayRadius(geocRwyRadius);
+ FDMExec.GetPosition()->SetRunwayRadius(scenery.cur_radius);
FG_LOG( FG_FLIGHT, FG_INFO, " phi: " << get_Phi());
FG_LOG( FG_FLIGHT, FG_INFO, " theta: " << get_Theta() );
fgtrim->Report();
fgtrim->TrimStats();
fgtrim->ReportState();
-
+
controls.set_elevator_trim(FDMExec.GetFCS()->GetDeCmd());
controls.set_trimmed_throttle(FGControls::ALL_ENGINES,FDMExec.GetFCS()->GetThrottleCmd(0)/100);
//the trimming routine only knows how to get 1 value for throttle
-
+
//for(int i=0;i<FDMExec.GetAircraft()->GetNumEngines();i++) {
// controls.set_throttle(i,FDMExec.GetFCS()->GetThrottleCmd(i)/100);
//}
// FCS->SetBrake( controls.get_brake( 0 ) );
// Inform JSBsim of the local terrain altitude; uncommented 5/3/00
-// FDMExec.GetPosition()->SetRunwayElevation(get_Runway_altitude()); // seems to work
- FDMExec.GetPosition()->SetRunwayRadius(geocRwyRadius);
+ // FDMExec.GetPosition()->SetRunwayElevation(get_Runway_altitude()); // seems to work
+ FDMExec.GetPosition()->SetRunwayRadius(scenery.cur_radius);
FDMExec.GetAtmosphere()->SetExTemperature(get_Static_temperature());
FDMExec.GetAtmosphere()->SetExPressure(get_Static_pressure());
// #defines in uiuc_aircraft.h
#include "bfi.hxx"
-q#include <FDM/UIUCModel/uiuc_aircraft.h>
+#include <FDM/UIUCModel/uiuc_aircraft.h>
#include <FDM/UIUCModel/uiuc_aircraftdir.h>
#include <GUI/gui.h>
#include <Joystick/joystick.hxx>