allwpilib
allwpilib copied to clipboard
More streamlined way to access robot modes via NT from coprocessors
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?
This would also help with viewing enabled-disabled status in the AdvantageScope line graph while live connected to NT.