1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-24 19:14:15 -04:00

Morse Decoder: added scope

This commit is contained in:
f4exb
2024-05-18 10:36:30 +02:00
parent 112cd4cac4
commit 8e9661f011
4 changed files with 60 additions and 284 deletions
@@ -34,6 +34,7 @@
#include "morsedecodersettings.h"
class ScopeVis;
class QTimer;
class MorseDecoderWorker : public QObject {
Q_OBJECT
@@ -115,6 +116,7 @@ private:
float m_pitchHz;
float m_speedWPM;
ScopeVis* m_scopeVis;
QTimer *m_pollTimer;
void feedPart(
const QByteArray::const_iterator& begin,
@@ -123,7 +125,7 @@ private:
);
bool handleMessage(const Message& cmd);
int processBuffer(QByteArray& bytesBuffer); //!< return the number of bytes left
int processBuffer(QByteArray& bytesBuffer, int countBytes); //!< return the number of bytes left
// inline void processSample(
// DataFifo::DataType dataType,
@@ -152,6 +154,7 @@ private:
private slots:
void handleInputMessages();
void handleData(); //!< Handle data when samples have to be processed
void pollingTick();
};
#endif // INCLUDE_FEATURE_MORSEDECODERWORKER_H_