 #define LOCKEDDISCRPM       30     //RPM to consider as "disc stopped"
 #define ROTATIONVARIANCE    2      //Variance in RPM before alarm condition 
 
-#define LOCKEDDISCRPM       10      //RPM to consider as "disc stopped"
-#define ROTATIONVARIANCE    12	      //Variance in RPM before alarm condition 
+#define LOCKEDDISCRPM       30      //RPM to consider as "disc stopped"
+#define ROTATIONVARIANCE    6	      //Variance in RPM before alarm condition 
 //#define TRANSMISSIONRATIO   10      //Tranmission drive ratio n:1
 #define NUMBEROFRESTARTS    3      //#of restarts attempted after stopped state
 #define STARTTIME           10000   //Expected ramp up time, in MS

						// to not trip locked rotor functiion
        restartCount = 0; // set restart counter to 0, since we're started
        allStopVar = 0; // Set allstop condition to off 
        }
    }    
    if (restartCount >= NUMBEROFRESTARTS) {


void motionControlStart(){
    if (restartCount < NUMBEROFRESTARTS){
	    Serial.println("Motor Control Start");
		digitalWrite(STARTRELAYPIN, HIGH); // enable start relay if not above fail counter
        delay(4000); // wait for 4 second for a rotation 

        if (pulseCount == 0){               // if no rotation detected in interrupt
            digitalWrite(STARTRELAYPIN, LOW); // turn off motor becuase of no rotation
