Esempio n. 1
0
void initSteppers()
{
    leftStepper.setSpeed(motorSpeed);
    rightStepper.setSpeed(motorSpeed);
    leftStepper.setAcceleration(motorAccel);
    rightStepper.setAcceleration(motorAccel);
//    Timer3.getAvailable().attachInterrupt(processSteppers).setPeriod(10).start();
}
Esempio n. 2
0
void setAcceleration(int desiredAcceleration)
{
    leftStepper.setAcceleration(desiredAcceleration);
    rightStepper.setAcceleration(desiredAcceleration);
}