-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
48 lines (38 loc) · 1.24 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtAV>
#include <QDebug>
#include "gamepadserver.h"
#include "tcprov.h"
#include <QObject>
#include "headingwidget.h"
#include "depthwidget.h"
#include "biaswidget.h"
#include "constantvalues.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
TcpRov *tcpRov;
QWidget * videoPlayer;
HeadingWidget * headingWidget;
DepthWidget * depthWidget;
BiasWidget * biasWidget;
int windowWidth;
int windowHeight;
void setupUI();
private slots:
//void on_depth_slider_valueChanged(int value);
void catchGamepadState(const GamepadState & gps, const int & playerId);
private:
QtAV::VideoOutput *m_vo;
QtAV::AVPlayer *m_player;
void checkAndHandleFlag(bool button, bool& lastKeyState, double& flag, double& reference, double referenceValue);
void handleBiasUp(bool button, bool& lastKeyState, double& bias, double maxValue);
void handleBiasDown(bool button, bool& lastKeyState, double& bias, double minValue);
void autoHandling(double autoFlagOn, double& reference, double autoAdjustment, double& force, double bias, double maxValue);
};
#endif // MAINWINDOW_H