Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cmd] Extract common trigger binding logic #7550

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

KangarooKoala
Copy link
Contributor

This makes the logic clearer in the actual binding methods and will hopefully make it less annoying to make changes such as allowing control over initial edges.

Also changes Java to use previous and current to match C++.

Also consistently use previous and current
@KangarooKoala KangarooKoala requested a review from a team as a code owner December 15, 2024 01:25
Copy link
Contributor

This PR modifies commands. Please open a corresponding PR in Python Commands and include a link to this PR.

@github-actions github-actions bot added the component: command-based WPILib Command Based Library label Dec 15, 2024
@KangarooKoala
Copy link
Contributor Author

Python's a bit wonky since they don't have lambdas with block bodies (hence the currently existing decorator trick), but I'm working on a port nonetheless. Because of availability it'll probably take a day or two, though.

@PeterJohnson PeterJohnson merged commit 70f36cc into wpilibsuite:main Dec 15, 2024
44 checks passed
@KangarooKoala KangarooKoala deleted the simplify-trigger branch December 15, 2024 16:58
katzuv pushed a commit to katzuv/allwpilib that referenced this pull request Feb 16, 2025
This makes the logic clearer in the actual binding methods and will hopefully make it less annoying to make changes such as allowing control over initial edges.

Also changes Java to use previous and current to match C++.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: command-based WPILib Command Based Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants