mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2026-05-05 12:33:47 +08:00
添加了温度测试
This commit is contained in:
@ -0,0 +1,31 @@
|
||||
//
|
||||
// Created by xin on 24-12-12.
|
||||
//
|
||||
|
||||
#ifndef TEMPERATUREWOKER_H
|
||||
#define TEMPERATUREWOKER_H
|
||||
#include "QObject"
|
||||
#include <QtSerialPort/QSerialPort>
|
||||
#include <QtSerialPort/QSerialPortInfo>
|
||||
#include "nlohmann/json.hpp"
|
||||
struct tempera_group
|
||||
{
|
||||
float tempera[8]={0};
|
||||
|
||||
};
|
||||
using json = nlohmann::json;
|
||||
class TemperaTureWoker:public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
TemperaTureWoker();
|
||||
QList<tempera_group> m_Tempreaturegroups;
|
||||
void ReadTempreature();
|
||||
private:
|
||||
QSerialPort *m_SerialPort;
|
||||
bool m_isInit=false;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif //TEMPERATUREWOKER_H
|
||||
Reference in New Issue
Block a user