From 1ed60cd00cd9fdcc45dab1f81e00dd723858a430 Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Fri, 18 Nov 2022 16:06:36 -0600 Subject: Made progress on battery class. --- battery.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'battery.h') 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 +#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: }; -- cgit v1.2.3