As part of one of my projects, we are switching from SmartDashboard → Shuffleboard. I am attempting to make a custom widget to display information about our swerve drive in a single box (requestedSpeed, speed, requestedTurn, and turn). The Widget plugin can be found here.
I had originally made a custom PID widget which worked fine. However, now I am encountering mind hurting problems. For the past week or so I have been unable to have my Swerve Module data sent and reflected with the widget.
I named my Sendable object PowerShuffleSwerveModule. Inside each swerve module (wheel+turn controller) I then run
swerveModule = new PowerShuffleSwerveModule(); ComplexWidget widget = Shuffleboard.getTab("Swerve").add("Shuffle-" + id, swerveModule) .withWidget(PowerShuffleWidgets.SwerveModule.getIdentifier());
but nothing happens. There is no output to console. There is no error in Shuffleboard’s log. The initSendable function does not print the debug statement I added. Shuffleboard is able to add default widgets just fine. I have confirmed that the withWidget string is correct (“SwerveModule”), and that the id is correct inside the .add method.
Is there something I’m doing wrong here? I’d be extremely grateful for any help.