Shuffleboard Reset without restarting?

Hello all!

We are digging further into Shuffleboard this year and it is working well! We are creating tabs programmatically for each subsystem to help facilitate testing and tuning.

What we have noticed is that if we change the layout in code the only way to “wipe a tab clean” is to restart Shuffleboard. Not a big deal… But ideally would like a ‘tab.reset()’ or ‘tab.clean()’ or something we can do programmatically… once a widget is placed it doesn’t appear you can resize or move it. Any suggestions?

Thank you!

Hollis.

3 Likes

once a widget is placed it doesn’t appear you can resize or move it. Any suggestions?

If you are placing the widget programmatically, the API layout will override any custom layout. You can do setPosition() to change the position of the widget.

Thank you for the response!

I don’t see a setPosition method… what class? I see the “construction decorators” including withPosition.

private NetworkTableEntry m_actualRPM = null;
m_actualRPM = m_shuffleboardTab.add("Shooter Actual RPM", 4000).withSize(2, 1).withPosition(2, 1).getEntry();

How do I move it?

Thanks!