It’s state here that you need to use .getEntry()
on ShuffleboardWidget
but this method does not exist. Am I missing something?
There is some example code there that gets a NetworkTable instance (called “limelight”) and later on in the code uses that instance to query the table for a specific entry.
Notice the types being used to see which of the types has the exposed method getEntry().
In the exmaple you gave you created a Table with the NT.
I want to access an entry that I created on the Shuffleboard, should work with the Shuffleboard object as I see it
The Shuffleboard information is a set of NetworkTableEntries, so you can get it through the table reference themselves (by specifying the NT hierarchy) or using the built-ins to extract things like specific widgets from specific tabs.
Simple and Complex widget classes both have getEntry that returns the NetworkTableEntry object.
Hah! Thanks! treid to use the SuppliedWiget, no sense in doing that silly me.
btw Complex widget does not have getEntry which seams reasonable.
Oh, I guess I should open the docs before I answer, sorry for the wrong info. I thought Complex and SimpleWidgets were both ShuffleboardComponents, and that getEntry came from there. They are indeed components, but getEntry isn’t supplied from that level in the hierarchy. Glad you got what you were looking for though.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.