Added timeout feature
This commit is contained in:
14
Manager.h
14
Manager.h
@@ -40,14 +40,18 @@ private:
|
||||
|
||||
float _uwbDist[4];
|
||||
|
||||
bool isRunning = false;
|
||||
bool _isRunning = false;
|
||||
bool _logToDisk = false;
|
||||
int _maxRuntime = 0;
|
||||
|
||||
std::shared_ptr<QFile> ftmLogger;
|
||||
|
||||
public:
|
||||
Q_PROPERTY(bool isRunning READ getIsRunning NOTIFY isRunningChanged)
|
||||
Q_PROPERTY(bool logToDisk READ getLogToDisk WRITE setLogToDisk NOTIFY logToDiskChanged)
|
||||
|
||||
Q_PROPERTY(int maxRuntime READ getMaxRuntime WRITE setMaxRuntime)
|
||||
|
||||
Q_PROPERTY(float uwbDist1 READ getUwbDist1() NOTIFY uwbDistChanged)
|
||||
Q_PROPERTY(float uwbDist2 READ getUwbDist2() NOTIFY uwbDistChanged)
|
||||
Q_PROPERTY(float uwbDist3 READ getUwbDist3() NOTIFY uwbDistChanged)
|
||||
@@ -66,11 +70,16 @@ public:
|
||||
void onWifiData(WifiRttResult result);
|
||||
void onUWBData(std::vector<uchar> data);
|
||||
|
||||
public:
|
||||
private:
|
||||
|
||||
bool getIsRunning() const { return _isRunning; }
|
||||
|
||||
bool getLogToDisk() const { return _logToDisk; }
|
||||
void setLogToDisk(bool v) { _logToDisk = v; emit logToDiskChanged(v); }
|
||||
|
||||
int getMaxRuntime() const { return _maxRuntime; }
|
||||
void setMaxRuntime(int value) { _maxRuntime = value; }
|
||||
|
||||
float getUwbDist1() {return _uwbDist[0];}
|
||||
float getUwbDist2() {return _uwbDist[1];}
|
||||
float getUwbDist3() {return _uwbDist[2];}
|
||||
@@ -81,6 +90,7 @@ signals:
|
||||
void uwbDistChanged();
|
||||
void newDistMeas(int idx, int value);
|
||||
void logToDiskChanged(bool newValue);
|
||||
void isRunningChanged();
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user