void StepperControlAxis::checkTiming() { //int i; // moveTicks++; if (stepIsOn) { if (moveTicks >= stepOffTick) { // Negative flank for the steps resetMotorStep(); setTicks(); //stepOnTick = moveTicks + (500000.0 / motorInterruptSpeed / axisSpeed); } } else { if (axisActive) { if (moveTicks >= stepOnTick) { // Positive flank for the steps setStepAxis(); //stepOffTick = moveTicks + (1000000.0 / motorInterruptSpeed / axisSpeed); } } } }
void StepperControlAxis::checkTiming() { int i; moveTicks++; if (axisActive) { if (moveTicks >= stepOffTick) { // Negative flank for the steps resetMotorStep(); checkMovement(); } else { if (moveTicks == stepOnTick) { // Positive flank for the steps setStepAxis(); } } } }