- Removed redundant FG*:: qualifications from class members
- Fixed comparisons between signed and unsigned ints
This commit is contained in:
parent
3e1680a824
commit
4f67824f09
10 changed files with 23 additions and 19 deletions
|
@ -130,7 +130,7 @@ public:
|
|||
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 );
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
class FGExternal: public FGInterface {
|
||||
|
||||
public:
|
||||
FGExternal::FGExternal( double dt );
|
||||
FGExternal::~FGExternal();
|
||||
FGExternal( double dt );
|
||||
~FGExternal();
|
||||
|
||||
// reset flight params to a specific position
|
||||
void init();
|
||||
|
|
|
@ -158,16 +158,16 @@ private:
|
|||
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);
|
||||
|
@ -176,7 +176,7 @@ private:
|
|||
float Calc_Oil_Press (float Oil_Temp, float Engine_RPM);
|
||||
|
||||
// Propeller calculations.
|
||||
void FGNewEngine::Do_Prop_Calcs(void);
|
||||
void Do_Prop_Calcs(void);
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -99,9 +99,9 @@ class FGJSBsim: public FGInterface {
|
|||
|
||||
public:
|
||||
/// Constructor
|
||||
FGJSBsim::FGJSBsim( double dt );
|
||||
FGJSBsim( double dt );
|
||||
/// Destructor
|
||||
FGJSBsim::~FGJSBsim();
|
||||
~FGJSBsim();
|
||||
|
||||
/// copy FDM state to LaRCsim structures
|
||||
bool copy_to_JSBsim();
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
class FGMagicCarpet: public FGInterface {
|
||||
|
||||
public:
|
||||
FGMagicCarpet::FGMagicCarpet( double dt );
|
||||
FGMagicCarpet::~FGMagicCarpet();
|
||||
FGMagicCarpet( double dt );
|
||||
~FGMagicCarpet();
|
||||
|
||||
// reset flight params to a specific position
|
||||
void init();
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
class FGNullFDM: public FGInterface {
|
||||
|
||||
public:
|
||||
FGNullFDM::FGNullFDM( double dt );
|
||||
FGNullFDM::~FGNullFDM();
|
||||
FGNullFDM( double dt );
|
||||
~FGNullFDM();
|
||||
|
||||
// reset flight params to a specific position
|
||||
void init();
|
||||
|
|
|
@ -223,7 +223,12 @@ void YASim::copyToYASim(bool copyState)
|
|||
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.
|
||||
|
|
|
@ -90,8 +90,7 @@ class FGMarkerBeacons {
|
|||
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:
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ bool FGMaterialLib::load( const string& mpath ) {
|
|||
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 "
|
||||
|
|
|
@ -112,7 +112,7 @@ void FGWeatherParse::input(const char *file)
|
|||
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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue