|
|
@ -8,13 +8,14 @@ class MAVLinkDecoder : public QThread |
|
|
|
{ |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
Q_OBJECT |
|
|
|
public: |
|
|
|
public: |
|
|
|
MAVLinkDecoder(MAVLinkProtocol* protocol, QObject *parent = 0); |
|
|
|
MAVLinkDecoder(MAVLinkProtocol* protocol); |
|
|
|
|
|
|
|
|
|
|
|
void run(); |
|
|
|
void run(); |
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
signals: |
|
|
|
void textMessageReceived(int uasid, int componentid, int severity, const QString& text); |
|
|
|
void textMessageReceived(int uasid, int componentid, int severity, const QString& text); |
|
|
|
void valueChanged(const int uasId, const QString& name, const QString& unit, const QVariant& value, const quint64 msec); |
|
|
|
void valueChanged(const int uasId, const QString& name, const QString& unit, const QVariant& value, const quint64 msec); |
|
|
|
|
|
|
|
void finish(); ///< Trigger a thread safe shutdown
|
|
|
|
|
|
|
|
|
|
|
|
public slots: |
|
|
|
public slots: |
|
|
|
/** @brief Receive one message from the protocol and decode it */ |
|
|
|
/** @brief Receive one message from the protocol and decode it */ |
|
|
@ -35,6 +36,7 @@ protected: |
|
|
|
quint64 onboardTimeOffset[cMessageIds]; ///< Offset of onboard time from Unix epoch (of the receiving GCS)
|
|
|
|
quint64 onboardTimeOffset[cMessageIds]; ///< Offset of onboard time from Unix epoch (of the receiving GCS)
|
|
|
|
qint64 onboardToGCSUnixTimeOffsetAndDelay[cMessageIds]; ///< Offset of onboard time and GCS Unix time
|
|
|
|
qint64 onboardToGCSUnixTimeOffsetAndDelay[cMessageIds]; ///< Offset of onboard time and GCS Unix time
|
|
|
|
quint64 firstOnboardTime[cMessageIds]; ///< First seen onboard time
|
|
|
|
quint64 firstOnboardTime[cMessageIds]; ///< First seen onboard time
|
|
|
|
|
|
|
|
QThread* creationThread; ///< QThread on which the object is created
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#endif // MAVLINKDECODER_H
|
|
|
|
#endif // MAVLINKDECODER_H
|
|
|
|