diff --git a/src/device/DeviceManager.cpp b/src/device/DeviceManager.cpp index 3a464a1..434d391 100644 --- a/src/device/DeviceManager.cpp +++ b/src/device/DeviceManager.cpp @@ -809,11 +809,11 @@ void DeviceManager::processAlarm(const QString& aAlarm) { switch (alarmCode) { - case 492://left emergency button pushed + case DMSL_F417://left emergency button pushed prepareFinishScan(false,""); emit emergencyButtonPushed(true, false); return; - case 494://right emergency button pushed + case DMSL_F418://right emergency button pushed prepareFinishScan(false,""); emit emergencyButtonPushed(false, false); return; diff --git a/src/utilities/AlarmHelper.h b/src/utilities/AlarmHelper.h index b59996a..5b7b958 100644 --- a/src/utilities/AlarmHelper.h +++ b/src/utilities/AlarmHelper.h @@ -3,76 +3,46 @@ enum AlarmCode { - DMSL_F401 = 401, //AMC板卡缺失 - DMSL_F402, //DB/FEB串口打开失败 - DMSL_F403, //电机串口打开失败 - DMSL_F404, //操作AMC板卡失败 - DMSL_F405, //创建Ascan文件夹失败 - DMSL_F406, //读取配置文件失败 - DMSL_F407, //Ascan超时 - DMSL_F408, //CE超时 - DMSL_F409, //Ascan数据导出错误 - DMSL_F410, //CE数据导出错误 - DMSL_F411, //Dicom传输失败 - DMSL_F412, //电机控制失败 - DMSL_F413, //必须的指令不存在 - DMSL_F414, //MAC地址不存在 - DMSL_F415, //串口配置失败 - DMSL_F416, //网络错误 - DMSL_F417, //检查配置文件夹失败 - DMSL_F418, //硬盘空间不足 - DMSL_F419, //传输启动失败 - DMSL_F420, //参数解析错误 - DMSL_F421, //文件传输失败 - DMSL_F422, //参数设置错误 - DMSL_F423, //扫查状态还没有准备好 + DMSL_F401 = 401, //AMC板卡缺失 + DMSL_F402, //DB/FEB串口打开失败 + DMSL_F403, //电机串口打开失败 + DMSL_F404, //操作AMC板卡失败(ADC失败) + DMSL_F405, //创建Ascan文件夹失败 + DMSL_F406, //读取配置文件失败 + DMSL_F407, //CEMeasurement超时 + DMSL_F408, //Ascan数据导出错误 + DMSL_F409, //CE数据导出错误 + DMSL_F410, //电机控制失败(FIXME) + DMSL_F411, //必须的指令不存在(du, ip, df,mkdir) + DMSL_F412, //MAC地址不存在 + DMSL_F413, //打开检查配置文件夹失败 + DMSL_F414, //参数解析错误 + DMSL_F415, //Chirp信号加载错误 + DMSL_F416, //电控板异常 + DMSL_F417, //左侧急停按下 + DMSL_F418, //右侧急停按下 + DMSL_F419, //数据导出/传输异常(数据质量判断) + DMSL_F420, //检查启动失败,需要停止后重新启动 + DMSL_F421, //扫查过程中出现未知错误(待启用) + DMSL_F422, //硬盘满了 + DMSL_F423, //TAS缺失 + DMSL_E501 = 501, //水处理设备通讯失败(待实现) + DMSL_E502, //水温过高 + DMSL_E503, //缺水 + DMSL_E504, //负压异常 + DMSL_W601 = 601, //Ascan采集超时 + DMSL_W602, //数据导出超时(FIXME) + DMSL_W603, //创建日志文件失败 - DMSL_F491 = 491, //电控板异常 - DMSL_F492 = 492, //左侧急停按下 - DMSL_F493 = 493, //数据导出异常 - DMSL_F494 = 494, //右侧急停按下 - DMSL_F495 = 495, //启动失败,需要停止后重新启动 - DMSL_F496 = 496, //导出错误 - DMSL_F497, //扫查过程中出现问题 - DMSL_F498, //硬盘满了 - DMSL_F499, //初始化(自检)失败,扫查不可进行。 - - DMSL_W501 = 501, //TAS缺失(少于10%) - DMSL_W502, //创建日志文件失败 - DMSL_W503, //JSON解析错误 - DMSL_W504, //线程尚未结束 - DMSL_W505, //异常服务ID - DMSL_W506, //数据解析异常 - DMSL_W507, //DB/FEB操作失败 - DMSL_W508, //串口操作失败 - DMSL_W509, //文件(夹)读取失败 - DMSL_W510, //Vbus错误 - DMSL_W511, //CE 文件缺失 - - - DMSL_W590 = 590, //配置出错 - DMSL_W591, //上传数据出错 - - - DMSL_I601 = 601, //启动Ascan - DMSL_I602, //启动CE - DMSL_I603, //启动PreView - DMSL_I604, //停止(执行完成停止) - DMSL_I605, //停止(被GUI强制停止) - DMSL_I606, //启动Dicom数据传输 - DMSL_I607, //停止Dicom数据传输(执行完成停止) - DMSL_I608, //停止Dicom数据传输(被GUI强制停止) - DMSL_I609, //DB FEB操作信息 - - DMSL_D700 = 700, //启动时候的Debug信息 - DMSL_D701, //常规的扫查debug信息 - DMSL_D702, //常规的传输debug信息 - DMSL_D703, //常规的信息debug信息 - DMSL_D704, //常规设备操作debug信息 - DMSL_D705, //常规的固件升级debug信息 - DMSL_D706, //常规的协议操作debug信息 - DMSL_D707, //常规网络debug信息 - DMSL_D708, //常规vbus debug信息 + DMSL_D700 = 700, //启动时候的Debug信息 + DMSL_D701, //常规的扫查debug信息 + DMSL_D702, //常规的传输debug信息 + DMSL_D703, //常规的信息debug信息 + DMSL_D704, //常规设备操作debug信息 + DMSL_D705, //常规的固件升级debug信息 + DMSL_D706, //常规的协议操作debug信息 + DMSL_D707, //常规网络debug信息 + DMSL_D708, //常规vbus debug信息 }; #include