Added data logging
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define MANAGER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QFile>
|
||||
|
||||
class Manager : public QObject {
|
||||
|
||||
@@ -12,6 +13,8 @@ private:
|
||||
float _dist[4];
|
||||
float _stdDev[4];
|
||||
|
||||
std::shared_ptr<QFile> dataLogger;
|
||||
|
||||
public:
|
||||
|
||||
Q_PROPERTY(float dist1 READ getDist1() NOTIFY distChanged)
|
||||
@@ -26,6 +29,7 @@ public:
|
||||
|
||||
|
||||
Q_INVOKABLE void trigger();
|
||||
Q_INVOKABLE void stop();
|
||||
|
||||
void onData(std::string str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user