Skip to content

Mark ControlUtil.deadband deprecated. Turns out, there is an equivale…#78

Merged
vdikov merged 1 commit into
mainfrom
vdikov/deprecate-deadband
Oct 13, 2025
Merged

Mark ControlUtil.deadband deprecated. Turns out, there is an equivale…#78
vdikov merged 1 commit into
mainfrom
vdikov/deprecate-deadband

Conversation

@vdikov
Copy link
Copy Markdown
Contributor

@vdikov vdikov commented Oct 13, 2025

…nt function in the edu.wpi.first libraries

Our unit-tests for this function pass, which confirms that edu.wpi.first.math.MathUtil.applyDeadband is a drop in replacement, minus the exceptions our functions throw when its parameters are out of range.

In practice, we probably don't need these checks anyway, since values outside of [-1, 1] cannot come from controllers.

@vdikov vdikov requested a review from spderman3333 October 13, 2025 04:24
Copy link
Copy Markdown
Member

@spderman3333 spderman3333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vdikov
Copy link
Copy Markdown
Contributor Author

vdikov commented Oct 13, 2025

Thanks, @spderman3333 !

@vdikov vdikov merged commit 5de8bbb into main Oct 13, 2025
1 check passed
@spderman3333 spderman3333 deleted the vdikov/deprecate-deadband branch October 13, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants