diff options
author | Joshua Drake <joshua.drake@ditchwitch.com> | 2022-11-18 16:06:36 -0600 |
---|---|---|
committer | Joshua Drake <joshua.drake@ditchwitch.com> | 2022-11-18 16:06:36 -0600 |
commit | 1ed60cd00cd9fdcc45dab1f81e00dd723858a430 (patch) | |
tree | 073251bba5914829268bbf67563837c44a05ad80 /battery.h | |
parent | aeef870dbed6488483dc8dadfdf57858a9d84b7c (diff) |
Made progress on battery class.
Diffstat (limited to 'battery.h')
-rw-r--r-- | battery.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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: }; |