Moved measuring into separate thread (thus decreasing response to registers change)

This commit is contained in:
ftc
2020-12-09 09:00:20 +03:00
parent 68bb96a301
commit 07afde2125
4 changed files with 62 additions and 27 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef TEMPERATURE_THREAD_H
#define TEMPERATURE_THREAD_H
#include "Thread.h"
#include "globals.h"
class TemperatureThread : public ftc::Thread
{
string cmd;
protected:
virtual void Run() override;
public:
TemperatureThread(const string &cmd);
};
#endif