summaryrefslogtreecommitdiff
path: root/battery.h
diff options
context:
space:
mode:
Diffstat (limited to 'battery.h')
-rw-r--r--battery.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/battery.h b/battery.h
index c1b7a86..887fb0e 100644
--- a/battery.h
+++ b/battery.h
@@ -2,6 +2,7 @@
#define BATTERY_H
#include <QObject>
+#include "math.h"
typedef struct batteryData {
QString name;
@@ -33,16 +34,23 @@ class Battery : public QObject
Q_OBJECT
public:
Battery();
-private:
+
+ void setSystemVoltage(double voltage);
+ void setPeakSystemPower(double power);
void changeBatteryChemistry(int name);
+private:
batteryData_t activeBattery;
int seriesCells;
int parallelCells;
+ double systemVoltage;
+ double peakPower;
float packDischargeRate;
float packChargeRate;
float packWeight;
float packEnergy;
+
+ void calculate(void);
signals:
};