summaryrefslogtreecommitdiff
path: root/battery.h
diff options
context:
space:
mode:
authorJoshua Drake <joshua.drake@ditchwitch.com>2022-11-18 16:06:36 -0600
committerJoshua Drake <joshua.drake@ditchwitch.com>2022-11-18 16:06:36 -0600
commit1ed60cd00cd9fdcc45dab1f81e00dd723858a430 (patch)
tree073251bba5914829268bbf67563837c44a05ad80 /battery.h
parentaeef870dbed6488483dc8dadfdf57858a9d84b7c (diff)
Made progress on battery class.
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:
};