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

Transition to a listener-based approach for the dashboard compressor toggle #5

Closed
wants to merge 3 commits into from

Conversation

5t0n3
Copy link
Member

@5t0n3 5t0n3 commented Apr 15, 2022

Previously, we were enabling/disabling the compressor on every robot loop run, which wasn't really necessary. This PR takes advantage of network tables event listeners instead of repeatedly calling an update method.

I can't really simulate the compressor (or at least I don't know how to), so I'll test this on the real bot when I get a chance before merging. :)

@5t0n3 5t0n3 added the enhancement New feature or request label Apr 15, 2022
@5t0n3 5t0n3 self-assigned this Apr 15, 2022
@5t0n3 5t0n3 force-pushed the compressor-update-listener branch from da18a3c to f3c18fc Compare April 15, 2022 03:05
@5t0n3 5t0n3 added this to In progress in 2022 Postseason Apr 17, 2022
@5t0n3 5t0n3 marked this pull request as draft April 20, 2022 17:31
@5t0n3
Copy link
Member Author

5t0n3 commented Apr 20, 2022

For whatever reason the dashboard toggle wouldn't work after power cycling the robot, so I'm converting this back into a draft until I can figure out why that's happening.

@5t0n3
Copy link
Member Author

5t0n3 commented May 31, 2022

I'm still having the same issue even while using a NetworkButton, so I'll probably just leave the compressor toggle as-is and leave this pull request for documentation purposes.

@5t0n3 5t0n3 closed this May 31, 2022
2022 Postseason automation moved this from In progress to Done May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants