-
Notifications
You must be signed in to change notification settings - Fork 46
/
tab_pid.h
62 lines (51 loc) · 1.2 KB
/
tab_pid.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <QWidget>
#include <fstream>
#include <stdint.h>
#include <QList>
#include <QTime>
#include <QVector>
class MyThread;
class QwtPlotCurve;
class QwtPlot;
class QStatusBar;
class QCheckBox;
class QTreeWidget;
class QTreeWidgetItem;
class QTabWidget;
class QPushButton;
class QLineEdit;
class QLabel;
enum Curves {hotend1=0,bed=1,hotend2=2,heater=3};
class TabPID : public QWidget
{
Q_OBJECT
public:
TabPID(QWidget *parent = 0);
void addData(float t1,float b,float t2,float h);
void startTime();
void calculatePeriodicity();
QwtPlotCurve *curve[4] ;
QwtPlot *tempPlot,*heaterPlot;
QPushButton *clear;
QLineEdit *temp[3];
QLineEdit *pids[4];
QVector<double> time;
QVector<double> value_hotend1,value_hotend2,value_bed,value_heater;
QVector<double> target_hotend1,target_hotend2,target_bed;
QTime starttime;
QCheckBox *differential,*monitor;
QPushButton *btClear, *btPeriod, *btSet,*btLoad;
QLabel *lPeriod,*lAmp,*lAmpPrevious,*lAmpRatio;
QLineEdit *ePeriod,*eCriticalGain;
QCheckBox *cbZieglerDif;
public slots:
//void setWasRead();
//void quit();
void clearClicked();
void periodClicked();
void setClicked();
signals:
void pidChanged();
private:
QPushButton *test;
};