Skip to content

CheapStepper::move/newMove - numSteps should the long instead of int #2

@matonym

Description

@matonym

At the moment CheapStepper::move has a parameter with the number of steps you want to step the motor. The numSteps parameter is defined as an int which only give you room to turn it maximum about 8 full revolutions. If this was defined as a Long instead we would have a lot of more possibilities.

These are the changes needed to be done:
CheapStepper.cpp
Row 49: void CheapStepper::move (bool clockwise, long numSteps)
Row 91: void CheapStepper::newMove (bool clockwise, long numSteps){

CheapStepper.h
Row 45: void move (bool clockwise, long numSteps);
Row 63: void newMove (bool clockwise, long numSteps);
Row 95: long getStepsLeft()
Row 124: long stepsLeft = 0

This may affect the other functions as well, but I haven't tested those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions