Skip to content

[FEATURE] Instead of derivating position to get velocity and PID on it, integrate target velocity #534

Description

@Moddingear

Is your feature request related to a problem? Please describe.
The current velocity mode is sensitive to the resolution of the encoder for high update rate function, and gets very noisy. Furthermore, on motors with cogging, it struggles to keep up.

Describe the solution you'd like
Instead of derivating the angle of the sensor, integrating the target velocity to get a position would reduce the noise. Of course, that delta position would need to be divided by delta time to stay a velocity.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions