summaryrefslogtreecommitdiff
path: root/generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'generator.h')
-rw-r--r--generator.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/generator.h b/generator.h
new file mode 100644
index 0000000..0aad560
--- /dev/null
+++ b/generator.h
@@ -0,0 +1,26 @@
+#ifndef GENERATOR_H
+#define GENERATOR_H
+
+#include <QObject>
+
+class Generator : public QObject
+{
+ Q_OBJECT
+public:
+ Generator();
+
+ void setRPM(double speed);
+ void setSystemVoltage(double voltage);
+
+ double generatorKV(void);
+public slots:
+ void calculate(void);
+private:
+ double RPM;
+ double systemVoltage;
+signals:
+ void calculation(void);
+
+};
+
+#endif // GENERATOR_H