 OutputPin dirPinY(3);
 OutputPin stepPinY(2);
 
+
 long xPosition = 0;
 long yPosition = 0;
 
-long currentSpeed = 1000;
-long currentAcc = 1000;
-
-double pulsePerMM = 168.35;
-long feedRate = 1000;
-
-int xPulsePin = 10;
-int xDirPin = 11;
-int yPulsePin = 9;
-int yDirPin = 3;
+double pulsePerMM = 62.289;
+
 float curve_section = 0.5;
 bool isRelative = false;
 String gcode = "";

                currentDuringTime = targetDuringTime;
                motionDir = 0;
            }
        }else if(motionDir<0&&currentDuringTime<5000){
            
            if(motionDir<-150){
                motionAcc = -1;

    long y0 = yPosition;
    long x1 = tx;
    long y1 = ty;
    currentDuringTime = max(targetDuringTime+500,1000);
    motionDir = 1;
    motionAcc = 1;
    long dx,dy,sx,sy;
