-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcanTab.h
53 lines (39 loc) · 798 Bytes
/
canTab.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
#ifndef CANTAB_H
#define CANTAB_H
#include <QWidget>
#include <QTimer>
QT_USE_NAMESPACE
QT_BEGIN_NAMESPACE
namespace Ui {
class CanTab;
}
QT_END_NAMESPACE
class MainWindow;
class CanTab : public QWidget
{
Q_OBJECT
public:
explicit CanTab(QWidget *parent = 0);
~CanTab();
void setMainWindow(MainWindow* mainWindow_);
void savePlot();
private slots:
void realtimeDataSlot();
void startCAN();
void stopCAN();
void setMotor();
void stopMotors();
void resetMotor1();
void resetMotor2();
private:
Ui::CanTab *ui;
MainWindow *mainWindow;
QTimer dataTimer;
double plotStartTime;
double updateFrequency;
double showPastTime;
double windowWidth;
double rightBlankTime;
qint64 timeSpiNNakerStartBefore;
};
#endif // CanTab_H