Skip to content

Spark position wrapping with REVLib 2027 #401

Description

@jwbonner

What is the intended way of using closed-loop position wrapping (i.e. ClosedLoopConfig.positionWrappingEnabled) on a Spark using a relative encoder? I see that it wraps to [0, 1) rotations after the removal of positionWrappingInputRange, but as far as I can tell there's no way to configure the mechanism reduction after the removal of positionConversionFactor. Am I missing a config option somewhere? This was a useful feature when using a Spark as a turn controller for swerve.

It's possible to work around this by manually wrapping the setpoints in the robot program, but that's obviously not ideal.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions