qEcho/source/distancethread.h

23 lines
287 B
C
Raw Normal View History

2017-10-15 10:30:15 +00:00
#pragma once
#include <QThread>
class DistanceThread : public QThread
{
Q_OBJECT
private:
const int m_triggerPin = 28;
const int m_echoPin = 29;
public:
DistanceThread();
protected:
void run() override;
signals:
void distanceUpdated(double distMeters);
};