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

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

            this.desNode  = new MyPoint(desX, desY);
            this.speed    = MyBitConverter.ToUInt16(data, ref offset);
            this.moveDir  = (MoveDirection)data[offset++];
            this.agvAngle = new AgvDriftAngle(MyBitConverter.ToUInt16(data, ref offset));
        }