ITS
FakeCANProvider.h
Go to the documentation of this file.
1 
7 #ifndef FakeCANProvider_H
8 #define FakeCANProvider_H
9 
10 #include <QMutex>
11 #include <ParameterCAN.h>
12 
13 class FakeCANProvider : public QObject
14 {
15  Q_OBJECT
16 public:
21  FakeCANProvider(QMutex* mutex = nullptr);
30  ParameterCAN &data() {return m_data;}
31 
36  void changeCurvature(qint16 curvature);
41  void changeSpeed(qint16 speed);
46  void setAccelerationControl(quint8 accelerationControl);
51  void setExteriorLights(quint8 exteriorLights);
56  void setDriveDirection(quint8 driveDirection);
61  void changeYawRate(qint16 yawRate);
66  void setLightBarSirenInUse(quint8 lightBarSiren);
67 
74 
75 signals:
79  void canChanged();
80 
81 protected:
82  QMutex* m_mutex;
84 };
85 
86 #endif // FakeCANProvider_H
void setDriveDirection(quint8 driveDirection)
setDriveDirection Set the drive direction.
void changeYawRate(qint16 yawRate)
changeYawRate Change the yaw rate.
~FakeCANProvider()
~FakeCANProvider FakeCANProvider destructor.
ParameterCAN & data()
data CAN bus data getter.
void setLightBarSirenInUse(quint8 lightBarSiren)
setLightBarSirenInUse Set the light bar and siren status.
void setExteriorLights(quint8 exteriorLights)
setExteriorLights Set the exterior lights status.
void changeSpeed(qint16 speed)
changeSpeed Change the speed.
void canChanged()
canChanged Signal used when data changed.
ParameterCAN m_data
void changeCurvature(qint16 curvature)
changeCurvature Change the curvature.
FakeCANProvider & operator=(const FakeCANProvider &other)
operator= Affectation operator.
FakeCANProvider(QMutex *mutex=nullptr)
FakeCANProvider FakeCANProvider constructor.
void setAccelerationControl(quint8 accelerationControl)
setAccelerationControl Set the acceleration control.