Beispiel #1
0
        float rout_speed = 2; // Routing speed (inches per minute)

        #endregion Fields

        #region Constructors

        public Router(IHardware d)
        {
            commands = new List<RouterCommand>();
            device = d;
            d.onRobotReady += new EventHandler(this.RobotReady);
            d.onPositionUpdate += new EventHandler(RouterPositionUpdate);
            currentPosition = new PointF(0, 0);
            actualPosition = new PointF(0, 0);
        }
 public abstract void Execute(IHardware d);
Beispiel #3
0
 public override void Execute(IHardware d)
 {
     Console.WriteLine("Going to " + toPoint);
     Vector3 p = new Vector3(toPoint.X, toPoint.Y, toPoint.Z);
     d.GoTo(p, tool_speed);
 }