The interesting behaviour of the stepper

73 views
Skip to first unread message

Vadim

unread,
May 4, 2013, 3:07:21 PM5/4/13
to accels...@googlegroups.com
I want to move stepper between two saving positions. But at first stepper moved some steps back and only after that stepper moved from one memorized position to next.
Who is  confront with that problem?

/////////////////////////////////////////////////////////////////////////
stepper.setMaxSpeed(SPEED);
stepper.setAcceleration(ACCEL);
stepper.moveTo(savedPosA);
stepper.runToPosition();

/////////////////////////////////////////////  second version of the code
stepper.setAcceleration(0);  
stepper.runToNewPosition(stepper.currentPosition());

stepper.setMaxSpeed(SPEED);
stepper.setAcceleration(ACCEL);
stepper.runToNewPosition(savedPosA);

Both versions work equally.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages