|
@ -102,10 +102,10 @@ public class QueryXZAgvDeviceStatus { |
|
|
String kepStatus = String.valueOf(maGangAgvDeviceDriver.getStatus()); |
|
|
String kepStatus = String.valueOf(maGangAgvDeviceDriver.getStatus()); |
|
|
String kepType = String.valueOf(maGangAgvDeviceDriver.getType()); |
|
|
String kepType = String.valueOf(maGangAgvDeviceDriver.getType()); |
|
|
if (!StrUtil.equals(kepStatus, status)) { |
|
|
if (!StrUtil.equals(kepStatus, status)) { |
|
|
maGangAgvDeviceDriver.writing("status", status); |
|
|
maGangAgvDeviceDriver.writing("status", Integer.parseInt(status)); |
|
|
} |
|
|
} |
|
|
if (!StrUtil.equals(kepType, task_type)) { |
|
|
if (!StrUtil.equals(kepType, task_type)) { |
|
|
maGangAgvDeviceDriver.writing("type", task_type); |
|
|
maGangAgvDeviceDriver.writing("type", Integer.parseInt(task_type)); |
|
|
} |
|
|
} |
|
|
maGangAgvDeviceDriver.writing("x_coordinate", hisFormat.format(x)); |
|
|
maGangAgvDeviceDriver.writing("x_coordinate", hisFormat.format(x)); |
|
|
maGangAgvDeviceDriver.writing("y_coordinate", hisFormat.format(y)); |
|
|
maGangAgvDeviceDriver.writing("y_coordinate", hisFormat.format(y)); |
|
@ -135,7 +135,7 @@ public class QueryXZAgvDeviceStatus { |
|
|
MaGangLedDeviceDriver maGangLedDeviceDriver; |
|
|
MaGangLedDeviceDriver maGangLedDeviceDriver; |
|
|
if (device.getDeviceDriver() instanceof MaGangLedDeviceDriver) { |
|
|
if (device.getDeviceDriver() instanceof MaGangLedDeviceDriver) { |
|
|
maGangLedDeviceDriver = (MaGangLedDeviceDriver) device.getDeviceDriver(); |
|
|
maGangLedDeviceDriver = (MaGangLedDeviceDriver) device.getDeviceDriver(); |
|
|
maGangLedDeviceDriver.writing("D01", "1"); |
|
|
maGangLedDeviceDriver.writing("D01", 1); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
String name = jsonObject.getString("name"); |
|
|
String name = jsonObject.getString("name"); |
|
@ -146,7 +146,7 @@ public class QueryXZAgvDeviceStatus { |
|
|
MaGangLedDeviceDriver maGangLedDeviceDriver; |
|
|
MaGangLedDeviceDriver maGangLedDeviceDriver; |
|
|
if (device.getDeviceDriver() instanceof MaGangLedDeviceDriver) { |
|
|
if (device.getDeviceDriver() instanceof MaGangLedDeviceDriver) { |
|
|
maGangLedDeviceDriver = (MaGangLedDeviceDriver) device.getDeviceDriver(); |
|
|
maGangLedDeviceDriver = (MaGangLedDeviceDriver) device.getDeviceDriver(); |
|
|
maGangLedDeviceDriver.writing("D01", "0"); |
|
|
maGangLedDeviceDriver.writing("D01", 0); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|