Closed katzuv closed 9 months ago
This can be done via robot code by using the select tab method of the Shuffleboard API. Whenever you use that method in your robot code, Elastic will switch to the tab you want to select if the tab exists
Here's the WPILib documentation for this part of the Shuffleboard API: https://docs.wpilib.org/en/stable/docs/software/dashboards/shuffleboard/layouts-with-code/using-tabs.html
Didn't know that existed, thank you!
One way to implement that is to have a constant entry that holds the name of the tab which should be active/in focus. A few use cases I thought of:
DriverStation.isFMSAttached()
](https://github.wpilib.org/allwpilib/docs/release/java/edu/wpi/first/wpilibj/DriverStation.html#isFMSAttached()) is true).