Skip to content

More streamlined way to access robot modes via NT from coprocessors #7913

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

Open
mcm001 opened this issue Apr 19, 2025 · 1 comment
Open

More streamlined way to access robot modes via NT from coprocessors #7913

mcm001 opened this issue Apr 19, 2025 · 1 comment
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@mcm001
Copy link
Contributor

mcm001 commented Apr 19, 2025

Is your feature request related to a problem? Please describe.

In PhotonVision/photonvision#1923 I found a need to access the current control word via NT. This lead to me creating my own record since stuff was private in the wpilib ControlWord class. We also have a lot of duplicated code for getting match data over in our snapshot class so we can name snapshots. Not sure if there's an easier way to do this without changes to wpilib?

Describe the solution you'd like

My first idea was to create a NT-specific driverstation class

Describe alternatives you've considered

This problem will probably magically disappear in 2027, right?

@mcm001 mcm001 added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 19, 2025
@KangarooKoala
Copy link
Contributor

This would also help with viewing enabled-disabled status in the AdvantageScope line graph while live connected to NT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

2 participants