|
@ -1,7 +1,12 @@ |
|
|
package a8k.service.db.dao; |
|
|
package a8k.service.db.dao; |
|
|
|
|
|
|
|
|
|
|
|
import a8k.service.db.entity.HardwareServiceSetting; |
|
|
|
|
|
import com.iflytop.uf.UfActiveRecord; |
|
|
import org.springframework.stereotype.Component; |
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 样本预处理相关参数访问 |
|
|
* 样本预处理相关参数访问 |
|
|
*/ |
|
|
*/ |
|
@ -17,13 +22,13 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
// 回零超时时间 |
|
|
// 回零超时时间 |
|
|
public int getMoveToZeroOvertime() { |
|
|
public int getMoveToZeroOvertime() { |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "MoveToZeroOvertime", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 执行动作的超时时间,该超时时间适用于当前模块在当前产品中所有动作的最大时间。 |
|
|
// 执行动作的超时时间,该超时时间适用于当前模块在当前产品中所有动作的最大时间。 |
|
|
public int getActionOvertime() { |
|
|
public int getActionOvertime() { |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
// 索引为 "SamplesPreProcessModuleCtrlService" "MoveToZeroOvertime" |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ActionOvertime", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -32,27 +37,27 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
|
|
|
|
|
|
// 高全血试管取帽位置 |
|
|
// 高全血试管取帽位置 |
|
|
public int getZMotor_HighBloodTakeCapHeight() { |
|
|
public int getZMotor_HighBloodTakeCapHeight() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodTakeCapHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 矮全血试管取帽位置 |
|
|
// 矮全血试管取帽位置 |
|
|
public int getZMotor_ShortBloodTakeCapHeight() { |
|
|
public int getZMotor_ShortBloodTakeCapHeight() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodTakeCapHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 高试管帽子判断位置 |
|
|
// 高试管帽子判断位置 |
|
|
public int getZMotor_HighBloodCapJudgeHeight() { |
|
|
public int getZMotor_HighBloodCapJudgeHeight() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_HighBloodCapJudgeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 矮全血试管帽子判断位置 |
|
|
// 矮全血试管帽子判断位置 |
|
|
public int getZMotor_ShortBloodCapJudgeHeight() { |
|
|
public int getZMotor_ShortBloodCapJudgeHeight() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_ShortBloodCapJudgeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 摇匀位放置高度 |
|
|
// 摇匀位放置高度 |
|
|
public int getZMotor_placeShakeHeight() { |
|
|
public int getZMotor_placeShakeHeight() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ZMotor_placeShakeHeight", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
@ -61,17 +66,17 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
|
|
|
|
|
|
// 水平移动电机,待机位置 |
|
|
// 水平移动电机,待机位置 |
|
|
public int getHorizontalMotor_standbyPos() { |
|
|
public int getHorizontalMotor_standbyPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 水平移动电机,取帽位置 |
|
|
// 水平移动电机,取帽位置 |
|
|
public int getHorizontalMotor_takeCapPos() { |
|
|
public int getHorizontalMotor_takeCapPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_takeCapPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 水平移动电机,放帽位置 |
|
|
// 水平移动电机,放帽位置 |
|
|
public int getHorizontalMotor_takePushCapPos() { |
|
|
public int getHorizontalMotor_takePushCapPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "HorizontalMotor_takePushCapPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
@ -80,22 +85,22 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
|
|
|
|
|
|
// 抓手舵机,待机位置 |
|
|
// 抓手舵机,待机位置 |
|
|
public int getGripperServo_standbyPos() { |
|
|
public int getGripperServo_standbyPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 抓手舵机,取帽扭矩 |
|
|
// 抓手舵机,取帽扭矩 |
|
|
public int getGripperServo_takeCapTorque() { |
|
|
public int getGripperServo_takeCapTorque() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_takeCapTorque", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 抓手舵机,取试管位置 |
|
|
// 抓手舵机,取试管位置 |
|
|
public int getGripperServo_takeTubePos() { |
|
|
public int getGripperServo_takeTubePos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_takeTubePos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 判断是否有帽子的位置阈值 |
|
|
// 判断是否有帽子的位置阈值 |
|
|
public int getGripperServo_hatDeterminesPosThres() { |
|
|
public int getGripperServo_hatDeterminesPosThres() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "GripperServo_hatDeterminesPosThres", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
@ -104,12 +109,12 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
|
|
|
|
|
|
// 摇匀电机待机位置 |
|
|
// 摇匀电机待机位置 |
|
|
public int getShakeMotor_standbyPos() { |
|
|
public int getShakeMotor_standbyPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ShakeMotor_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 摇匀电机摇匀角度 |
|
|
// 摇匀电机摇匀角度 |
|
|
public int getShakeMotor_shakeDegree() { |
|
|
public int getShakeMotor_shakeDegree() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "ShakeMotor_shakeDegree", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
@ -118,12 +123,12 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
|
|
|
|
|
|
// 试管夹紧电机待机位置 |
|
|
// 试管夹紧电机待机位置 |
|
|
public int getTubeClampMotor_standbyPos() { |
|
|
public int getTubeClampMotor_standbyPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "TubeClampMotor_standbyPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 试管夹紧电机夹紧位置 |
|
|
// 试管夹紧电机夹紧位置 |
|
|
public int getTubeClampMotor_ClampPos() { |
|
|
public int getTubeClampMotor_ClampPos() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "TubeClampMotor_ClampPos", 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
@ -131,6 +136,14 @@ public class SamplesPreProcessModuleCtrlParamsService { |
|
|
*/ |
|
|
*/ |
|
|
// 气溶胶风扇风力大小(0->100) |
|
|
// 气溶胶风扇风力大小(0->100) |
|
|
public int getAerosolFanLevel() { |
|
|
public int getAerosolFanLevel() { |
|
|
return 0; |
|
|
|
|
|
|
|
|
return HardwareServiceSetting.getInteger(this.serviceName, "AerosolFanLevel", 100); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<HardwareServiceSetting> listOptions() { |
|
|
|
|
|
return UfActiveRecord.find(HardwareServiceSetting.class, Map.of("serviceName", this.serviceName)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public HardwareServiceSetting getOption(String optionName) { |
|
|
|
|
|
return HardwareServiceSetting.getOption(this.serviceName, optionName); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |