%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
#include "FGEngine.h"
-#include <input_output/FGXMLElement.h>
+#include "input_output/FGXMLElement.h"
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DEFINITIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-#define ID_ELECTRIC "$Id$";
+#define ID_ELECTRIC "$Id: FGElectric.h,v 1.9 2010/08/21 18:07:59 jberndt Exp $";
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FORWARD DECLARATIONS
CLASS DOCUMENTATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-/** Models and electric motor.
+/** Models an electric motor.
FGElectric models an electric motor based on the configuration file
- POWER_WATTS parameter. The throttle controls motor output linearly from
- zero to POWER_WATTS. This power value (converted internally to horsepower)
- is then used by FGPropeller to apply torque to the propeller.
+ \<power> parameter. The throttle controls motor output linearly from
+ zero to \<power>. This power value (converted internally to horsepower)
+ is then used by FGPropeller to apply torque to the propeller. At present
+ there is no battery model available, so this motor does not consume any
+ energy. There is no internal friction.
@author David Culp
- @version "$Id$"
+ @version "$Id: FGElectric.h,v 1.9 2010/08/21 18:07:59 jberndt Exp $"
*/
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/// Destructor
~FGElectric();
- double Calculate(void);
+ void Calculate(void);
double GetPowerAvailable(void) {return PowerAvailable;}
- double CalcFuelNeed(void);
double getRPM(void) {return RPM;}
- string GetEngineLabels(string delimeter);
- string GetEngineValues(string delimeter);
+ std::string GetEngineLabels(const std::string& delimiter);
+ std::string GetEngineValues(const std::string& delimiter);
private:
+ double CalcFuelNeed(void);
+
double BrakeHorsePower;
double PowerAvailable;