mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 14:07:51 +00:00
21 lines
465 B
C++
21 lines
465 B
C++
/******************************************
|
|
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
|