-
Notifications
You must be signed in to change notification settings - Fork 0
/
calibration.h
48 lines (37 loc) · 993 Bytes
/
calibration.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
#ifndef CALIBRATION_H
#define CALIBRATION_H
#include <QWidget>
#include<QStandardItemModel>
#include<QItemSelectionModel>
#include<QtDebug>
#include<QString>
#include "devicesystem.h"
#include"signaldata.h"
namespace Ui {
class Calibration;
}
class Calibration : public QWidget
{
Q_OBJECT
public:
explicit Calibration(DeviceSystem *system,QWidget *parent = nullptr);
~Calibration();
private slots:
void on_pushButton_add_1_clicked();
void on_pushButton_remove_1_clicked();
void on_pushButton_clear_1_clicked();
void on_itemChanged(QStandardItem *item);
void on_pushButton_clicked();
private:
Ui::Calibration *ui;
QStandardItemModel *theModel = nullptr;
QItemSelectionModel *theSelection = nullptr;
DeviceSystem *device_system = nullptr;
void TableInit();
double GetActualValue();
QVector<double> GetAllActualValue();
QVector<double> vx;
QVector<double> vy;
QVector<double> coeff;
};
#endif // CALIBRATION_H