240717班级,工业化控制系统,煤矿相关行业,昆仑系统
congmu
2024-11-02 0a5bc1d574adce254becfd3f598f505fbfbe27c3
common.h
@@ -561,10 +561,11 @@
// 警报请求结构体  
struct WarningReq {  
    Head head;  
    float oxygen;   // 氧气浓度
    float carbon;   // 一氧化碳浓度
    float temp;     // 温度
    float humidity; // 湿度
   float oxygenWarning;
   float carbonWarning;
   float tempWarning;
   float humidityWarning;
    WarningReq() {  
        head.type = WARNING_REQ;  
@@ -572,6 +573,22 @@
    }  
};  
struct DataThreshold{
     //阈值
    float oxygenThreshold;
    float carbonThreshold;
    float tempThreshold;
    float humidityThreshold;
};
struct Data{
    float oxygen;   // 氧气浓度
    float carbon;   // 一氧化碳浓度
    float temp;     // 温度
    float humidity; // 湿度
};
// 警报响应结构体  
struct WarningRes {  
    Head head;