trick/trick_sims/SIM_wheelbot/models/Battery/include/DCBattery.hh

21 lines
465 B
C++
Raw Normal View History

2016-02-18 22:14:44 +00:00
/******************************************
PURPOSE: (DCBattery)
*******************************************/
#ifndef DCBattery_H
#define DCBattery_H
class DCBattery
{
public:
DCBattery(double initialIdealVoltage, double initialInternalResistance);
void update ();
double getActualVoltage();
void setCurrent(double current);
private:
double idealVoltage;
double internalResistance;
double actualVoltage;
double current;
};
#endif