Make motor creep "single-step" one tenth steps-per-count

This commit is contained in:
Douglas Clowes
2013-07-12 12:39:16 +10:00
parent e9a884fa30
commit 4d933a6399

View File

@@ -681,7 +681,7 @@ static int motCreep(pDMC2280Driv self, double target) {
* we have to "single step" otherwise we want to go half way
*/
if (offset <= fabs(self->stepsPerX / self->cntsPerX)) {
offset = offset / DECADIC_CREEP;
offset = fabs(self->stepsPerX / self->cntsPerX) / DECADIC_CREEP;
if (offset < 1)
offset = 1;
} else {