-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainWindow.h
executable file
·62 lines (54 loc) · 1.3 KB
/
mainWindow.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
62
#pragma once
#include <QMainWindow>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QTimer>
#include <QKeyEvent>
#include <QThread>
#include "ui_ISIM.h"
#include "videoFrame.h"
#include "imageProcessor.h"
#include "isimControl.h"
class MainWindow : public QMainWindow {
Q_OBJECT
private: enum State{
CALIBRATION,
FIND_OBJECT,
CAPTURE,
//EDIT,
FIND_ISIM,
FUSION,
MANUAL
};
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void keyPressEvent(QKeyEvent* e);
public slots:
void serialCtrlBtnClicked();
void serialSendBtnClicked();
void pingBtnClicked();
void payloadDetectionBtnClicked();
void isimControlSelectionChanged(int);
void isimHomeSelectionChanged(int);
void isimControlValueChanged();
void assemblePathGenBtnClicked();
void readData();
void updateSensor();
void gyroReadBtnClicked();
void ldxlInfoChanged(int);
private:
Ui::MainWindow ui;
VideoFrame* mVideoFrame;
ImageProcessor mProcessor;
QTimer mImageProcessTimer;
MainWindow::State mCurState;
IsimControl* isim[5] ;
IsimControl* isimCurrentControl;
QTimer* serialTheadTimer;
QTimer* sensorUpdateTimer;
QString* cmdString;
QSerialPort mSerial;
private slots:
void imageProcess();
};