Selaa lähdekoodia

Merge remote-tracking branch 'origin/jnmc-jinco' into jnmc-jinco

HuKang 1 vuosi sitten
vanhempi
commit
e6c45b66cc

+ 3 - 3
warewms-ams/src/main/java/com/ruoyi/ams/agv/ndc/service/impl/SocketBufferServiceImpl.java

@@ -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;
         }
     }