-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
94 lines (67 loc) · 1.7 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDebug>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include<QtWebEngineWidgets/QWebEngineView>
#include<QtWebEngineWidgets/QWebEnginePage>
#include<QtWebChannel>
#include<QTimer>
#include <QtSpeech>
#include <QFileDialog>
#include <QMessageBox>
#include"handledata.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void readCCDGrap();
void initChart();
void showLine(QLineSeries* line, float data);
protected:
void keyPressEvent(QKeyEvent *e);
private slots:
void on_clearButton_clicked();
void on_sendButton_clicked();
void on_openButton_clicked();
void Read_Data();
void on_btnFindPort_clicked();
void on_startCarButton_clicked();
void on_blueTooth_clicked();
void on_ccd1CheckBox_clicked();
void on_ccd2CheckBox_clicked();
void on_PIDSend_clicked();
void CheckSend();
void sendSpeed();
void on_PIDGet_clicked();
void on_getInfomation_clicked();
void on_speedSend_clicked();
void on_readParameter_clicked();
void on_saveParameter_clicked();
private:
Ui::MainWindow *ui;
HandleData ccd1Data;
HandleData ccd2Data;
QChart *DataChart;
QValueAxis YAxis;
QValueAxis XAxis;
QLineSeries *Road;
uchar LineTemp[128]={0};
QByteArray Conmand;
quint8 Check;
quint8 CheckPID;
quint8 CheckSpeed;
quint8 CheckParameter;
quint8 CheckHead;
quint8 ReceiveCheck=0;
quint8 SendSuccessFlag=0;
QTimer CheckTime;
QtSpeech speech;
};
#endif // MAINWINDOW_H