|
@@ -116,9 +116,9 @@ public class SocketBufferServiceImpl implements SocketBufferService {
|
|
|
break;
|
|
|
case 0x63:
|
|
|
//xy轴位置
|
|
|
- //car.setX(251770 - ByteUtil.getUnsignedShort(parameters, 6) * 10);
|
|
|
- //car.setY(96620 - ByteUtil.getUnsignedShort(parameters, 14) * 10);
|
|
|
- //car.update();
|
|
|
+ int x = 251770 - ByteUtil.getUnsignedShort(parameters, 6) * 10;
|
|
|
+ int y = 96620 - ByteUtil.getUnsignedShort(parameters, 14) * 10;
|
|
|
+ log.info("AGV坐标,车号:" + carNo + ",x:" + x + ",y:" + y);
|
|
|
break;
|
|
|
}
|
|
|
}
|