Files
AireOptoSifAndSpectral/othersoft/TemperatureControler/src/Temperature/TemperatureRegulator.h
2025-04-03 11:09:19 +08:00

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