Skip to content
Snippets Groups Projects
Commit 096c109f authored by Emilio Corigliano's avatar Emilio Corigliano Committed by Emilio Corigliano
Browse files

[Stepper][StepperPWM] Now we always use getCurrentDegPosition() to do...

[Stepper][StepperPWM] Now we always use getCurrentDegPosition() to do calculations with the current state
parent 76af9ad3
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !138. Comments created here will be created in the context of that merge request.
...@@ -186,7 +186,7 @@ void Stepper::setPosition(int16_t steps) ...@@ -186,7 +186,7 @@ void Stepper::setPosition(int16_t steps)
void Stepper::setPositionDeg(float position) void Stepper::setPositionDeg(float position)
{ {
moveDeg(position - currentPositionDeg); moveDeg(position - getCurrentDegPosition());
} }
int16_t Stepper::getCurrentPosition() int16_t Stepper::getCurrentPosition()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment