update to V1.1

This commit is contained in:
cocktailyogi
2014-04-22 13:13:58 +02:00
parent cbf81dfb57
commit 7852a828b9
3 changed files with 8 additions and 3 deletions

View File

@@ -93,8 +93,8 @@ void stepperMove(){
//Move-Code:
digitalWrite(enableRotMotor, LOW) ;
digitalWrite(enablePenMotor, LOW) ;
long rotSteps = ((float) (rotMicrostep/rotStepMode)) * rotStepsEBB; //transform to local coordiantes
long penSteps = ((float) (penMicrostep/penStepMode)) * penStepsEBB; //transform to local coordiantes
long rotSteps = round( ((float) (rotMicrostep/rotStepMode)) * rotStepsEBB ); //transform to local coordiantes
long penSteps = round( ((float) (penMicrostep/penStepMode)) * penStepsEBB ); //transform to local coordiantes
float rotSpeed = (float) ( ((long) rotSteps * (long)1000) / (long) duration ) ;
float penSpeed = (float) ( ((long) penSteps * (long)1000) / (long) duration ) ;
rotMotor.move(rotSteps);