diff --git a/EggDuino.ino b/EggDuino.ino index 5d9b33d..34e3b03 100644 --- a/EggDuino.ino +++ b/EggDuino.ino @@ -23,7 +23,7 @@ Thanks to my wife and my daughter for their patience. :-) #include #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 #define step1 11 #define dir1 10 diff --git a/Functions.ino b/Functions.ino index 8ec3e4a..308d3d1 100644 --- a/Functions.ino +++ b/Functions.ino @@ -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); diff --git a/VersionHistory.txt b/VersionHistory.txt new file mode 100644 index 0000000..4ebba2f --- /dev/null +++ b/VersionHistory.txt @@ -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 \ No newline at end of file