ITS
FakeGPSProvider.h
Go to the documentation of this file.
1 
7 #ifndef FakeGPSProvider_H
8 #define FakeGPSProvider_H
9 
10 #include <QMutex>
11 #include <ParameterGPS.h>
12 #include <QDateTime>
13 
14 class FakeGPSProvider : public QObject
15 {
16  Q_OBJECT
17 public:
22  FakeGPSProvider(QMutex* mutex = nullptr);
31  ParameterGPS &data() {return m_data;}
36  quint64 timestamp() {return getTimestamp();}
37 
44 
51  void changePosition(qint32 deltaLatitude, qint32 deltaLongitude, qint8 deltaAltitude);
56  void changeHeading(quint16 heading);
61  void changeSpeed(quint16 speed);
62 
63 signals:
67  void positionChanged();
68 
69 protected:
70  QMutex* m_mutex;
73  QDateTime startIts;
75  /* API */
79  quint64 getTimestamp();
80 
81 };
82 
83 #endif // FakeGPSProvider_H
GPS Configuration.
quint64 timestamp()
timestamp Timestamp getter.
quint64 getTimestamp()
getTimestamp Get ITS timestamp from system timestamp.
FakeGPSProvider & operator=(const FakeGPSProvider &other)
operator= Affectation operator.
ParameterGPS m_data
ParameterGPS & data()
data GPS data getter.
void positionChanged()
positionChanged Signal used when GPS position change.
void changeSpeed(quint16 speed)
changeSpeed Change the speed.
void changePosition(qint32 deltaLatitude, qint32 deltaLongitude, qint8 deltaAltitude)
changePosition Change the GPS position.
FakeGPSProvider(QMutex *mutex=nullptr)
FakeGPSProvider FakeGPSProvider constructor.
void changeHeading(quint16 heading)
changeHeading Change the heading.
QDateTime startIts