diff options
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: }; |