Skip to content

Commit

Permalink
1.42.20
Browse files Browse the repository at this point in the history
changed z input value for kurt wobblefix to z-min endstop z.
  • Loading branch information
Nibbels committed Sep 23, 2018
1 parent e3247bf commit 5ad8b1f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Repetier/Constants.h
Expand Up @@ -20,7 +20,7 @@
#define CONSTANTS_H


#define REPETIER_VERSION "RF.01.42.19"
#define REPETIER_VERSION "RF.01.42.20"
#define UI_PRINTER_COMPANY "Conrad Community"
#define UI_VERSION_STRING "V " REPETIER_VERSION

Expand Down
9 changes: 5 additions & 4 deletions Repetier/Printer.cpp
Expand Up @@ -538,17 +538,18 @@ uint8_t Printer::setDestinationStepsFromGCode(GCode *com)
float zweiPi = 6.2832f; //2*Pi
float hundertstelPi = 0.031428f; //Pi/100
float spindelSteigung = 5.0f; //[mm]

float zSchalterZ = Printer::currentZSteps * invAxisStepsPerMM[Z_AXIS];

//wobble durch Bauchtanz der Druckplatte
//wobbleX oder wobbleY(x0) oder wobbleX(x245)
if(Printer::wobbleAmplitudes[0]){
float anglePositionWobble = cos(zweiPi*(z/spindelSteigung) - (float)Printer::wobblePhaseXY * hundertstelPi);
float anglePositionWobble = cos(zweiPi*(zSchalterZ/spindelSteigung) - (float)Printer::wobblePhaseXY * hundertstelPi);
//für das wobble in Richtung X-Achse gilt immer dieselbe Amplitude, weil im extremfall beide gegeneinander arbeiten und sich aufheben könnten, oder die Spindeln arbeiten zusammen.
Printer::wobblefixOffset[X_AXIS] = Printer::wobbleAmplitudes[0] * anglePositionWobble;
x += Printer::wobblefixOffset[X_AXIS]/1000; //offset in [um] -> kosys in [mm]
}
if(Printer::wobbleAmplitudes[1] || Printer::wobbleAmplitudes[2]){
float anglePositionWobble = sin(zweiPi*(z/spindelSteigung) - (float)Printer::wobblePhaseXY * hundertstelPi);
float anglePositionWobble = sin(zweiPi*(zSchalterZ/spindelSteigung) - (float)Printer::wobblePhaseXY * hundertstelPi);
//gilt eher die Y-Achsen-Richtung-Amplitude links (x=0) oder rechts (x=achsenlänge)? (abhängig von der ziel-x-position wird anteilig verrechnet.)
float xPosPercent = x/Printer::lengthMM[X_AXIS];
Printer::wobblefixOffset[Y_AXIS] = ((1-xPosPercent) * Printer::wobbleAmplitudes[1] + (xPosPercent) * Printer::wobbleAmplitudes[2]) * anglePositionWobble;
Expand All @@ -558,7 +559,7 @@ uint8_t Printer::setDestinationStepsFromGCode(GCode *com)
//wobble durch Kippeln mit Hebel -> Z-Hub
//wobbleZ
if(Printer::wobbleAmplitudes[3]){
float anglePositionLift = sin(zweiPi*(z/spindelSteigung) + (float)Printer::wobblePhaseZ * hundertstelPi); //phase von +-100% -> +-Pi
float anglePositionLift = sin(zweiPi*(zSchalterZ/spindelSteigung) + (float)Printer::wobblePhaseZ * hundertstelPi); //phase von +-100% -> +-Pi
Printer::wobblefixOffset[Z_AXIS] = Printer::wobbleAmplitudes[3] * anglePositionLift;
//z kippel-wobble nur mit etwas Abstand überhalb senseoffset ausgleichen. Drunter könnte das stören.
if(z > fabs(Printer::wobblefixOffset[Z_AXIS])+AUTOADJUST_STARTMADEN_AUSSCHLUSS){
Expand Down
1 change: 1 addition & 0 deletions Repetier/src/SdFat/FatLib/FatFilePrint.cpp
Expand Up @@ -233,6 +233,7 @@ void FatFile::lsRecursive(uint8_t level, bool isJson)
*/
void FatFile::ls(uint8_t flags, uint8_t indent) {
(void)flags;
(void)indent;
*fullName = 0;
lsRecursive(0, false);
}
Expand Down
6 changes: 4 additions & 2 deletions changelog.txt
@@ -1,9 +1,11 @@
TODO: Testing, testing ..
TODO: Zaldo said that he experienced a hard reset while starting some Z-Calibration. (Awaiting further information about this bug)
TODO: zero K and nikibalboa say that they experienced a hard reset while starting "unload filament soft" or "load filament soft"

V RF.01.42.20.Mod (2018-09-23)
- Changed phase formula for Kurts Wobblefix: We now use the z coordinate from z-min endstop instead of print coordinates. That should avoid that the wobblefix moves within z axis when we change the matrix or z-offset values.

V RF.01.42.19.Mod (2018-09-23)
- Changed phase formula for Kurts Wobblefix. This is a possible fix for wrong phase angles.
- Changed phase formula for Kurts Wobblefix: This is a possible fix for wrong phase angles.

V RF.01.42.18.Mod (2018-09-23)
- Kurt Wobble Fix: The phase value will now jump from negative to positive.
Expand Down

0 comments on commit 5ad8b1f

Please sign in to comment.