Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
ControlsManager.hpp
Go to the documentation of this file.
1
15
16#ifndef CONTROLSMANAGER_HPP
17#define CONTROLSMANAGER_HPP
18
19#include "enums.hpp"
20#include <fcntl.h>
21#include <sys/mman.h>
22#include <unistd.h>
23#include <iostream>
24#include "../ZeroC/ClientThread.hpp"
25#include <QObject>
26#include <QThread>
27
32class ControlsManager : public QObject {
33 Q_OBJECT
34
35public:
36 explicit ControlsManager(int argc, char **argv, QObject *parent = nullptr);
38
39public slots:
40 void drivingModeUpdated(DrivingMode newMode);
41
42signals:
43 void directionChanged(CarDirection newDirection);
44 void steeringChanged(int newAngle);
45
46private:
48
49 QThread* m_clientThread;
50};
51
52#endif // CONTROLSMANAGER_HPP
DrivingMode
Enum class for the driving mode.
Definition enums.hpp:24
CarDirection
Enum class for the car direction.
Definition enums.hpp:30
Class for the client thread.
The ControlsManager class.
void directionChanged(CarDirection newDirection)
ControlsManager(int argc, char **argv, QObject *parent=nullptr)
void drivingModeUpdated(DrivingMode newMode)
Update the driving mode of the vehicle.
ClientThread * m_clientObject
void steeringChanged(int newAngle)