bool search( const string& aptid, const int hdg, FGRunway* runway );
// Return the runway number of the runway closest to a given heading
- string FGRunways::search( const string& aptid, const int tgt_hdg );
+ string search( const string& aptid, const int tgt_hdg );
FGRunway search( const string& aptid );
bool next( FGRunway* runway );
class FGExternal: public FGInterface {
public:
- FGExternal::FGExternal( double dt );
- FGExternal::~FGExternal();
+ FGExternal( double dt );
+ ~FGExternal();
// reset flight params to a specific position
void init();
float Calculate_Delta_T_Exhaust(void);
// Calculate cylinder head temperature
- void FGNewEngine::Calc_CHT(void);
+ void Calc_CHT(void);
// Calculate exhaust gas temperature
- void FGNewEngine::Calc_EGT(void);
+ void Calc_EGT(void);
// Calculate fuel flow in gals/hr
- void FGNewEngine::Calc_Fuel_Flow_Gals_Hr(void);
+ void Calc_Fuel_Flow_Gals_Hr(void);
// Calculate current percentage power
- void FGNewEngine::Calc_Percentage_Power(bool mag_left, bool mag_right);
+ void Calc_Percentage_Power(bool mag_left, bool mag_right);
// Calculate Oil Temperature
float Calc_Oil_Temp (float oil_temp);
float Calc_Oil_Press (float Oil_Temp, float Engine_RPM);
// Propeller calculations.
- void FGNewEngine::Do_Prop_Calcs(void);
+ void Do_Prop_Calcs(void);
public:
public:
/// Constructor
- FGJSBsim::FGJSBsim( double dt );
+ FGJSBsim( double dt );
/// Destructor
- FGJSBsim::~FGJSBsim();
+ ~FGJSBsim();
/// copy FDM state to LaRCsim structures
bool copy_to_JSBsim();
class FGMagicCarpet: public FGInterface {
public:
- FGMagicCarpet::FGMagicCarpet( double dt );
- FGMagicCarpet::~FGMagicCarpet();
+ FGMagicCarpet( double dt );
+ ~FGMagicCarpet();
// reset flight params to a specific position
void init();
class FGNullFDM: public FGInterface {
public:
- FGNullFDM::FGNullFDM( double dt );
- FGNullFDM::~FGNullFDM();
+ FGNullFDM( double dt );
+ ~FGNullFDM();
// reset flight params to a specific position
void init();
wind[0] = get_V_north_airmass() * FT2M;
wind[1] = get_V_east_airmass() * FT2M;
wind[2] = get_V_down_airmass() * FT2M;
- double ground = get_Runway_altitude() * FT2M;
+
+ // The ground elevation doesn't come from FGInterface; query it
+ // from the scenery and set it for others to find.
+ double ground = scenery.get_cur_elev();
+ set_Runway_altitude(ground * FT2M);
+ // cout << "YASIM: ground = " << ground << endl;
// You'd this this would work, but it doesn't. These values are
// always zero. Use a "standard" pressure intstead.
beacon_map_type beacon_map;
// real add a marker beacon
- bool FGMarkerBeacons::real_add( const int master_index,
- const FGMkrBeacon& b );
+ bool real_add( const int master_index, const FGMkrBeacon& b );
public:
FGNewMat * m = new FGNewMat(node);
vector<const SGPropertyNode *>names = node->getChildren("name");
- for (int j = 0; j < names.size(); j++) {
+ for (unsigned int j = 0; j < names.size(); j++) {
m->ref();
matlib[names[j]->getStringValue()] = m;
SG_LOG( SG_TERRAIN, SG_INFO, " Loading material "
in >> temp.airpressure_history[2];
in >> temp.airpressure_history[3];
- for (int i = 0; i < weather_station.size(); i++)
+ for (unsigned int i = 0; i < weather_station.size(); i++)
{
if ((weather_station[i].lat == temp.lat) && (weather_station[i].lon == temp.lon))
{