diff options
Diffstat (limited to 'precharge.h')
-rw-r--r-- | precharge.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/precharge.h b/precharge.h new file mode 100644 index 0000000..376b067 --- /dev/null +++ b/precharge.h @@ -0,0 +1,38 @@ +#ifndef PRECHARGE_H +#define PRECHARGE_H + +#include <QObject> +#include <QtMath> + +class Precharge : public QObject +{ + Q_OBJECT +public: + Precharge(); + + void setMaximumVoltage(double voltage); + void setPreChargeTime(double time); + void setPreChargePercentage(double percentage); + void setSystemCapacitance(float capacitance); + void setChosenResistance(double resistance); + + double maximumResistance(void); + double actualPreChargeTime(void); + double peakInRushCurrent(void); + double averagePower(void); +public slots: + void calculate(void); + +private: + double maximumVoltage; + double preChargeTime; + double preChargePercentage; + double chosenResistance; + float systemCapacitance; + +signals: + void calculation(void); + +}; + +#endif // PRECHARGE_H |