allwpilib icon indicating copy to clipboard operation
allwpilib copied to clipboard

More streamlined way to access robot modes via NT from coprocessors

Open mcm001 opened this issue 7 months ago • 1 comments

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

In https://github.com/PhotonVision/photonvision/pull/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 avatar Apr 19 '25 13:04 mcm001

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

KangarooKoala avatar Apr 22 '25 18:04 KangarooKoala