This commit is contained in:
Hendrik Schutter 2018-11-22 22:32:02 +01:00
parent 0728477503
commit 2dd39f8940
2 changed files with 3 additions and 5 deletions

View File

@ -15,6 +15,7 @@ charger::charger(const struct s_charger pCharger) {
charger::~charger() {
}
/* returns current charge-current in mA */
double charger::getCurrent() {
mux.setChannel(charger_settings.chI);
int tmp = (int) io.readAdc(0);
@ -22,6 +23,7 @@ double charger::getCurrent() {
return ret;
}
/* returns current battery voltage in V */
double charger::getVoltage() {
mux.setChannel(charger_settings.chU);
int tmp = (int) io.readAdc(0);
@ -29,15 +31,12 @@ double charger::getVoltage() {
return ret;
}
/* returns summed up charged capacity since charge start in mAh */
double charger::getCapacity() {
//TODO
return 1.1;
}
double charger::getChargeTime() {
//TODO
return 1.1;
}
void charger::getInfo() {
char buffer[50];

View File

@ -28,7 +28,6 @@ public:
double getCurrent();
double getVoltage();
double getCapacity();
double getChargeTime();
void getInfo();
void setStatus(bool pBool);
bool getStatus();