0712提交

This commit is contained in:
zjk
2025-07-12 15:39:28 +08:00
parent 4116397f3e
commit 2ef5fd92ac
32 changed files with 3601 additions and 458 deletions
@@ -579,6 +579,33 @@ void HttpServer::pushSystemData() {
j["power_bus_status"]["reservedCurrent3"] = Json::Value(m_systemData->power_bus_status.reservedCurrent3); // 预留电流3
j["power_bus_status"]["coolWaterPressure"] = Json::Value(m_systemData->power_bus_status.coolWaterPressure); // 冷却水压力
// union {
// unsigned char lowFaultWord;
// struct {
// bool overTemperatureShutdown : 1; // Bit0: DC/DC模块过温关机
// bool outputOverCurrent : 1; // Bit1: 输出过流
// bool outputOverVoltage : 1; // Bit2: 输出过压
// bool outputUnderVoltage : 1; // Bit3: 输出欠压
// bool inputOverVoltage : 1; // Bit4: 输入过压
// bool inputUnderVoltage : 1; // Bit5: 输入欠压
// bool outputShortCircuit : 1; // Bit6: 输出短路保护
// bool internalFault : 1; // Bit7: 内部故障
// };
// };
// // DC/DC5故障字高
// union {
// unsigned char highFaultWord;
// struct {
// bool communicationFault : 1; // Bit0: 通讯故障报警
// bool workingStatus : 1; // Bit1: 工作状态(1:启动, 0:关闭)
// bool coolingPump1Fault : 1; // Bit2: 冷却泵1故障
// bool coolingPump2Fault : 1; // Bit3: 冷却泵2故障
// bool coolingWaterLeak : 1; // Bit4: 冷却水泄露
// bool coolingPump1Running : 1; // Bit5: 冷却泵1运行状态
// bool coolingPump2Running : 1; // Bit6: 冷却泵2运行状态
// bool reserved : 1; // Bit7: 保留位
// };
// };
j["power_bus_status"]["dcdcStatus1"] = Json::Value(m_systemData->m_dcdcStatus.lowFaultWord);
j["power_bus_status"]["dcdcStatus2"] = Json::Value(m_systemData->m_dcdcStatus.highFaultWord);