here's the code
if (stepCommand == ACCELSTEPPER_STOP) {
if (stepper[deviceNum]) {
stepper[deviceNum]->stop();
isRunning[deviceNum] = false;
reportPosition(deviceNum, true);
}
}
But the accelstepper library cannot handle the quick stop. Therefore, the deceleration must be waited before the stepper motor stops. Is the report too early?
here's the code
if (stepCommand == ACCELSTEPPER_STOP) {
if (stepper[deviceNum]) {
stepper[deviceNum]->stop();
isRunning[deviceNum] = false;
reportPosition(deviceNum, true);
}
}
But the accelstepper library cannot handle the quick stop. Therefore, the deceleration must be waited before the stepper motor stops. Is the report too early?