任立新 温控系统

This commit is contained in:
xin
2025-04-03 11:09:19 +08:00
parent f1c5aa6902
commit 6e53ea4db2
16 changed files with 527 additions and 83 deletions

View File

@ -0,0 +1,36 @@
//
// 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