#include STL_FSTREAM
#include STL_IOSTREAM
-#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
-SG_USING_STD(cout);
-#endif
-
#include "IO360.hxx"
#include "LaRCsim/ls_constants.h"
// cout << "n = " << RPM << " rpm\n";
// cout << "T_amb = " << T_amb << '\n';
// cout << "running = " << running << '\n';
- cout << "fuel = " << fgGetFloat("/consumables/fuel/tank[0]/level-gal_us") << '\n';
+// cout << "fuel = " << fgGetFloat("/consumables/fuel/tank[0]/level-gal_us") << '\n';
// cout << "Percentage_Power = " << Percentage_Power << '\n';
// cout << "current_oil_temp = " << current_oil_temp << '\n';
- cout << "EGT = " << EGT << '\n';
+// cout << "EGT = " << EGT << '\n';
}
count1++;
if(count1 == 100)
}
//if we get here something has gone badly wrong
- cout << "ERROR: error in FGNewEngine::Lookup_Combustion_Efficiency\n";
+ SG_LOG(SG_AIRCRAFT, SG_ALERT, "error in FGNewEngine::Lookup_Combustion_Efficiency");
return neta_comb_actual;
}
}
//if we get here something has gone badly wrong
- cout << "ERROR: error in FGNewEngine::Power_Mixture_Correlation\n";
+ SG_LOG(SG_AIRCRAFT, SG_ALERT, "error in FGNewEngine::Power_Mixture_Correlation");
return mixPerPow_actual;
}
void FGNewEngine::Do_Prop_Calcs()
{
float Gear_Ratio = 1.0;
- float blade_length; // meters
float forward_velocity; // m/s
float prop_power_consumed_SI; // Watts
- float prop_power_consumed_HP; // HP
double J; // advance ratio - dimensionless
double Cp_20; // coefficient of power for 20 degree blade angle
double Cp_25; // coefficient of power for 25 degree blade angle