优化了上位机的通信函数
This commit is contained in:
@@ -27,10 +27,11 @@ public:
|
||||
void clearMsgQueue();
|
||||
|
||||
public:
|
||||
CMOOSLock m_CommMutex; // 保护UDP通信资源
|
||||
|
||||
// 初始化UDP通信
|
||||
bool initUdpComm();
|
||||
|
||||
// TODO:实现连接检查功能
|
||||
bool checkConnection();
|
||||
|
||||
// 更新设备状态
|
||||
bool updatePoweSystemStates();
|
||||
@@ -49,6 +50,19 @@ public:
|
||||
//转换函数
|
||||
char getBreakerOption(char cmd);
|
||||
|
||||
// 配电和CCU的反馈状态
|
||||
msg_CcuStateFbMsg m_CcuCurrentState;
|
||||
msg_disHighVolBusFbMsg m_disHighVolBusCurrentState;
|
||||
msg_disHighAVolBusFbMsg m_disHighAVolBusCurrentState;
|
||||
msg_disHighBVolBusFbMsg m_disHighBVolBusCurrentState;
|
||||
msg_disLowBusFbMsg m_disLowBusState;
|
||||
// 配电和CCU的反馈状态时间戳
|
||||
double msg_CcuStateFbMsg_Update_time;
|
||||
// double msg_CcuSetParmFbMsg_Update_time;
|
||||
double msg_disHighVolBusFbMsg_Update_time;
|
||||
double msg_disHighAVolBusFbMsg_Update_time;
|
||||
double msg_disHighBVolBusFbMsg_Update_time;
|
||||
double msg_disLowBusFbMsg_Update_time;
|
||||
public:
|
||||
long m_port;
|
||||
long m_ccuPort;
|
||||
|
||||
Reference in New Issue
Block a user