@author Dave Luff (engine operational code)
@author David Megginson (porting and additional code)
@version $Id$
+ @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGPiston.h?rev=HEAD&content-type=text/vnd.viewcvs-markup">
+ Header File </a>
+ @see <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jsbsim/JSBSim/FGPiston.cpp?rev=HEAD&content-type=text/vnd.viewcvs-markup">
+ Source File </a>
*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DECLARATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+namespace JSBSim {
+
class FGPiston : public FGEngine
{
public:
double Calculate(double PowerRequired);
double GetPowerAvailable(void) {return PowerAvailable;}
+ double CalcFuelNeed(void);
private:
+ int crank_counter;
+
double BrakeHorsePower;
double SpeedSlope;
double SpeedIntercept;
//
// constants
//
- const double CONVERT_CUBIC_INCHES_TO_METERS_CUBED;
const double R_air;
const double rho_fuel; // kg/m^3
double HP;
double combustion_efficiency;
- void Debug(void);
+ void Debug(int from);
};
-
+}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#endif