-
Notifications
You must be signed in to change notification settings - Fork 3
/
mainwindow.h
87 lines (64 loc) · 1.89 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QAction>
#include <QSettings>
#include <QList>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsPixmapItem>
#include <QFileInfo>
#include <QDebug>
#include <QShortcut>
#include <QApplication>
#include <QThread>
#include <QTimer>
#include <QPixmap>
#include "KX_Pult/kx_protocol.h"
#include "KX_Pult/qkx_coeffs.h"
#include "ui_mainwindow.h"
#include "UV/iuserinterfacedata.h"
#include "Communication/SerialClient.h"
#include "Communication/UdpClient.h"
#include "Control/Joystick.h"
#include "Control/Gamepad.h"
#include "ThrusterSettings/ThrusterWindow.h"
#include "StabilizationSettings/StabilizationWindow.h"
class MainWindow: public QMainWindow, private Ui::MainWindow {
Q_OBJECT
signals:
//import from old interface
void updateCompass(double yaw);
public:
explicit MainWindow(QWidget* parent = nullptr);
private:
Joystick* joystick = nullptr;
Gamepad* gamepad = nullptr;
StabilizationWindow stabilizationWindow;
ThrusterWindow thrusterWindow;
SerialClient* serial_client;
UdpClient* udp_client;
QTimer* update_timer;
IUserInterfaceData uv_interface;
private slots:
// void updateVehiclesMenu();
void stabilizeRollToggled(bool state);
void stabilizePitchToggled(bool state);
void stabilizeYawToggled(bool state);
void stabilizeDepthToggled(bool state);
void normalPackageClick();
void configPackageClick();
void directPackageClick();
void updateUi();
void resetImu();
void clearResetImu();
// menu actions
// void createVehicle();
// void chooseVehicle(QAction *action);
// void chooseConfiguration(QAction *action);
// full screen key combination
void fullScreenKey();
//Other buttons
// void reconnectcROVclick();
// void ConnectionTypeChanged(e_MessageTypes connectionType);
};
#endif // MAINWINDOW_H