Пример #1
0
 public Destination(CellPoint midPoint, CellPoint desPoint, AgvDriftAngle desAngle, TrayMotion motion)
 {
     this.MidPoint  = midPoint;
     this.DesPoint  = desPoint;
     this.desAngle  = desAngle;
     this.desMotion = motion;
 }
        public CurrentLocation(byte[] data, ref int offset)
        {
            UInt32 curX = MyBitConverter.ToUInt32(data, ref offset);
            UInt32 curY = MyBitConverter.ToUInt32(data, ref offset);

            this.curNode = new CellPoint(curX, curY);
            UInt32 desX = MyBitConverter.ToUInt32(data, ref offset);
            UInt32 desY = MyBitConverter.ToUInt32(data, ref offset);

            this.desNode  = new CellPoint(desX, desY);
            this.speed    = MyBitConverter.ToUInt16(data, ref offset);
            this.moveDir  = (MoveDirection)data[offset++];
            this.agvAngle = new AgvDriftAngle(MyBitConverter.ToUInt16(data, ref offset));//车头方向采用的是高位在后
        }