Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Spark position wrapping with REVLib 2027

Open
#401 0 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
robotics

Research direction

Start with the Java configuration entry point ClosedLoopConfig.positionWrappingEnabled and the relative-encoder setup, then trace how position wrapping handles its [0, 1) range after positionWrappingInputRange and positionConversionFactor were removed. Compare the available configuration with the swerve turn-controller use case; done means the intended mechanism-reduction behavior and supported configuration path are established.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
190
Forks
25
Avg merge
6h 20m
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wpilibsuite/SystemcoreTesting

All issues in wpilibsuite/SystemcoreTesting

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.