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

@@ -23,7 +23,7 @@ Thanks to my wife and my daughter for their patience. :-)
#include <Servo.h> #include <Servo.h>
#include "SerialCommand.h" //nice lib from Stefan Rado, https://github.com/kroimon/Arduino-SerialCommand #include "SerialCommand.h" //nice lib from Stefan Rado, https://github.com/kroimon/Arduino-SerialCommand
#define initSting "EBB 2.1.0+ Protocol emulated by Eggduino-Firmware V1.0" #define initSting "EBB 2.1.0+ Protocol emulated by Eggduino-Firmware V1.1"
//Rotational Stepper //Rotational Stepper
#define step1 11 #define step1 11
#define dir1 10 #define dir1 10

View File

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

5
VersionHistory.txt Normal file
View File

@@ -0,0 +1,5 @@
22.04.2014 V1.1
bugfix Command SM - fixed rounding error in pen and rot-axis
17.04.2014 V1.0
initial release