Moved measuring into separate thread (thus decreasing response to registers change)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user