mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-24 13:29:43 +08:00
37 lines
671 B
C
37 lines
671 B
C
|
|
//
|
||
|
|
// Created by xin on 25-4-2.
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef TEMPERATUREREGULATOR_H
|
||
|
|
#define TEMPERATUREREGULATOR_H
|
||
|
|
#include "TG_Manager.h"
|
||
|
|
#include "TemperaTureWoker.h"
|
||
|
|
#include "QObject"
|
||
|
|
|
||
|
|
class TemperatureRegulator :public QObject {
|
||
|
|
Q_OBJECT
|
||
|
|
public:
|
||
|
|
TemperatureRegulator();
|
||
|
|
void setconfig(json j);
|
||
|
|
void SetTartGetX_Y(int x,int y);
|
||
|
|
void init();
|
||
|
|
void loop();
|
||
|
|
static bool looptask();
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
private:
|
||
|
|
TemperaTureWoker *m_TemperaTureWoker;
|
||
|
|
TG_Manager *m_TG_Manager;
|
||
|
|
float M_Targert_Max_Tempreature=35;
|
||
|
|
float M_Targert_Min_Tempreature=25;
|
||
|
|
int m_target_index=0;
|
||
|
|
int m_target_indey=0;
|
||
|
|
bool isinit=false;
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#endif //TEMPERATUREREGULATOR_H
|