|
|
@ -46,7 +46,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommand pump1MoveBy(double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlCmd(Device.PUMP_1, Action.MOVE_BY, null); |
|
|
|
return controlCmd(Device.PUMP_1, Action.MOVE_BY, params); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -67,7 +67,7 @@ public class DeviceCommandGenerator { |
|
|
|
* 泵 1当前转数 |
|
|
|
*/ |
|
|
|
public static DeviceCommand pump1GetPosition() { |
|
|
|
return controlCmd(Device.PUMP_1, Action.GET, null); |
|
|
|
return getInfoCmd(Device.PUMP_1); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -103,7 +103,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommand pump2MoveBy(double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlCmd(Device.PUMP_2, Action.MOVE_BY, null); |
|
|
|
return controlCmd(Device.PUMP_2, Action.MOVE_BY, params); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -124,7 +124,7 @@ public class DeviceCommandGenerator { |
|
|
|
* 泵 2当前转数 |
|
|
|
*/ |
|
|
|
public static DeviceCommand pump2GetPosition() { |
|
|
|
return controlCmd(Device.PUMP_2, Action.GET, null); |
|
|
|
return getInfoCmd(Device.PUMP_2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -160,7 +160,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommand pump3MoveBy(double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlCmd(Device.PUMP_3, Action.MOVE_BY, null); |
|
|
|
return controlCmd(Device.PUMP_3, Action.MOVE_BY, params); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -181,7 +181,7 @@ public class DeviceCommandGenerator { |
|
|
|
* 泵 3当前转数 |
|
|
|
*/ |
|
|
|
public static DeviceCommand pump3GetPosition() { |
|
|
|
return controlCmd(Device.PUMP_3, Action.GET, null); |
|
|
|
return getInfoCmd(Device.PUMP_3); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -217,7 +217,7 @@ public class DeviceCommandGenerator { |
|
|
|
public static DeviceCommand pump4MoveBy(double position) { |
|
|
|
DeviceCommandParams params = new DeviceCommandParams(); |
|
|
|
params.setPosition(position); |
|
|
|
return controlCmd(Device.PUMP_4, Action.MOVE_BY, null); |
|
|
|
return controlCmd(Device.PUMP_4, Action.MOVE_BY, params); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -238,7 +238,7 @@ public class DeviceCommandGenerator { |
|
|
|
* 泵 4当前转数 |
|
|
|
*/ |
|
|
|
public static DeviceCommand pump4GetPosition() { |
|
|
|
return controlCmd(Device.PUMP_4, Action.GET, null); |
|
|
|
return getInfoCmd(Device.PUMP_4); |
|
|
|
} |
|
|
|
//=========================================== 私有方法 ============================================================ |
|
|
|
|
|
|
|