summaryrefslogtreecommitdiff
path: root/precharge.h
blob: 376b067610ad6b362712c7e2e6e78372d3a7c150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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