Skip to content

Updating _uStepCount when microstepping is changed #42

Description

@Zhi-en

The purpose of _uStepCount is to maintain 200 steps/rev even at microstepping of 256. However because this _uStepCount is fixed at 256, when the microstepping is changed via chopconf mres, the steps/rev changes. For example when mres is 1 (microstepping 128), it becomes 100steps/rev, because _uStepCount is still 256, not 128.

Would like to request for _uStepCount to be updated whenever mres is updated, such that all the functions: getCurrentSpeed, setMaxSpeed, getCurrentPosition, setTargetPosition, etc. would all continue to work on the 200 steps/rev logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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