mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-27 01:07:49 +01:00
stepper backlash compensation
Signed-off-by: Stepan Usatyuk <usaatyuk@ustk.me>
This commit is contained in:
@@ -10,15 +10,17 @@ class Stepper {
|
||||
int pin4;
|
||||
int curStep = 1;
|
||||
int remainingSteps;
|
||||
int backlashSteps;
|
||||
bool direction;
|
||||
void clockwise();
|
||||
void counterClockwise();
|
||||
|
||||
public:
|
||||
Stepper(int pin1, int pin2, int pin3, int pin4, int stepsPerRevolution);
|
||||
Stepper(int pin1, int pin2, int pin3, int pin4, int stepsPerRevolution, int backlashSteps);
|
||||
void step(int steps);
|
||||
void rotate(float degrees);
|
||||
void doStep();
|
||||
bool finished();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user