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