|
@ -1,16 +1,18 @@ |
|
|
package a8k.service.db.dao; |
|
|
package a8k.service.db.dao; |
|
|
|
|
|
|
|
|
import a8k.service.db.entity.HardwareServiceSetting; |
|
|
import a8k.service.db.entity.HardwareServiceSetting; |
|
|
|
|
|
import a8k.service.hardware.SamplesPreProcessModuleCtrlService; |
|
|
|
|
|
import a8k.utils.HardwareServiceParam; |
|
|
|
|
|
import a8k.utils.HardwareServiceParams; |
|
|
import com.iflytop.uf.UfActiveRecord; |
|
|
import com.iflytop.uf.UfActiveRecord; |
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 样本预处理相关参数访问 |
|
|
* 样本预处理相关参数访问 |
|
|
*/ |
|
|
*/ |
|
|
@Component |
|
|
@Component |
|
|
|
|
|
@HardwareServiceParams(service=SamplesPreProcessModuleCtrlService.class) |
|
|
public class SamplesPreProcessModuleCtrlParamsService { |
|
|
public class SamplesPreProcessModuleCtrlParamsService { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -19,130 +21,109 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
*/ |
|
|
*/ |
|
|
public final String serviceName = "SamplesPreProcessModuleCtrlService"; |
|
|
public final String serviceName = "SamplesPreProcessModuleCtrlService"; |
|
|
|
|
|
|
|
|
// 回零超时时间 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="回零超时时间") |
|
|
public int getMoveToZeroOvertime() { |
|
|
public int getMoveToZeroOvertime() { |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "MoveToZeroOvertime", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "MoveToZeroOvertime", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 执行动作的超时时间,该超时时间适用于当前模块在当前产品中所有动作的最大时间。 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="执行动作的超时时间") |
|
|
public int getActionOvertime() { |
|
|
public int getActionOvertime() { |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ActionOvertime", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ActionOvertime", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 升降电机相关位置 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="5ML全血试管取试管位置", group="升降电机") |
|
|
public int getZMotor_HighBloodTakeTubeHeight() { |
|
|
public int getZMotor_HighBloodTakeTubeHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodTakeTubeHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodTakeTubeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="3ML全血试管取试管位置", group="升降电机") |
|
|
public int getZMotor_ShortBloodTakeTubeHeight() { |
|
|
public int getZMotor_ShortBloodTakeTubeHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodTakeTubeHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodTakeTubeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 高全血试管取帽位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="5ML全血试管取帽位置", group="升降电机") |
|
|
public int getZMotor_HighBloodTakeCapHeight() { |
|
|
public int getZMotor_HighBloodTakeCapHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodTakeCapHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodTakeCapHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 矮全血试管取帽位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="3ML全血试管取帽位置", group="升降电机") |
|
|
public int getZMotor_ShortBloodTakeCapHeight() { |
|
|
public int getZMotor_ShortBloodTakeCapHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodTakeCapHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodTakeCapHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 高试管帽子判断位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="5ML全血试管帽子判断位置", group="升降电机") |
|
|
public int getZMotor_HighBloodCapJudgeHeight() { |
|
|
public int getZMotor_HighBloodCapJudgeHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodCapJudgeHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodCapJudgeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 矮全血试管帽子判断位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="3ML全血试管帽子判断位置", group="升降电机") |
|
|
public int getZMotor_ShortBloodCapJudgeHeight() { |
|
|
public int getZMotor_ShortBloodCapJudgeHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodCapJudgeHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodCapJudgeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 摇匀位放置高度 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="摇匀位放置高度", group="升降电机") |
|
|
public int getZMotor_placeShakeHeight() { |
|
|
public int getZMotor_placeShakeHeight() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_placeShakeHeight", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_placeShakeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* 平移电机相关参数 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 水平移动电机,待机位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="待机位置", group="水平移动电机") |
|
|
public int getHorizontalMotor_standbyPos() { |
|
|
public int getHorizontalMotor_standbyPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_standbyPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 水平移动电机,取帽位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="取帽位置", group="水平移动电机") |
|
|
public int getHorizontalMotor_takeCapPos() { |
|
|
public int getHorizontalMotor_takeCapPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_takeCapPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_takeCapPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 水平移动电机,放帽位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="放帽位置", group="水平移动电机") |
|
|
public int getHorizontalMotor_takePushCapPos() { |
|
|
public int getHorizontalMotor_takePushCapPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_takePushCapPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_takePushCapPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* 抓手 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 抓手舵机,待机位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="待机位置", group="抓手舵机") |
|
|
public int getGripperServo_standbyPos() { |
|
|
public int getGripperServo_standbyPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_standbyPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 抓手舵机,取帽扭矩 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="取帽扭矩", group="抓手舵机") |
|
|
public int getGripperServo_takeCapTorque() { |
|
|
public int getGripperServo_takeCapTorque() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_takeCapTorque", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_takeCapTorque", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 抓手舵机,取试管位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="取试管位置", group="抓手舵机") |
|
|
public int getGripperServo_takeTubePos() { |
|
|
public int getGripperServo_takeTubePos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_takeTubePos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_takeTubePos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 判断是否有帽子的位置阈值 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="判断是否有帽子的位置阈值", group="抓手舵机") |
|
|
public int getGripperServo_hatDeterminesPosThres() { |
|
|
public int getGripperServo_hatDeterminesPosThres() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_hatDeterminesPosThres", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_hatDeterminesPosThres", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* 摇匀电机 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 摇匀电机待机位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="待机位置", group="摇匀电机") |
|
|
public int getShakeMotor_standbyPos() { |
|
|
public int getShakeMotor_standbyPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ShakeMotor_standbyPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ShakeMotor_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 摇匀电机摇匀角度 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="摇匀角度", group="摇匀电机") |
|
|
public int getShakeMotor_shakeDegree() { |
|
|
public int getShakeMotor_shakeDegree() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ShakeMotor_shakeDegree", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ShakeMotor_shakeDegree", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* 夹紧电机 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 试管夹紧电机待机位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="待机位置", group="试管夹紧电机") |
|
|
public int getTubeClampMotor_standbyPos() { |
|
|
public int getTubeClampMotor_standbyPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "TubeClampMotor_standbyPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "TubeClampMotor_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 试管夹紧电机夹紧位置 |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="夹紧位置", group="试管夹紧电机") |
|
|
public int getTubeClampMotor_ClampPos() { |
|
|
public int getTubeClampMotor_ClampPos() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "TubeClampMotor_ClampPos", 0); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "TubeClampMotor_ClampPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* 气溶胶风扇控制参数 |
|
|
|
|
|
*/ |
|
|
|
|
|
// 气溶胶风扇风力大小(0->100) |
|
|
|
|
|
|
|
|
@HardwareServiceParam(name="气溶胶风扇风力大小") |
|
|
public int getAerosolFanLevel() { |
|
|
public int getAerosolFanLevel() { |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "AerosolFanLevel", 100); |
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "AerosolFanLevel", 100); |
|
|
} |
|
|
} |
|
|