|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SmartDashboardData
Anything that implements the SmartDashboardData
interface can be sent
to the SmartDashboard using putData(...)
.
Examples include SendablePIDController
, SendableGyro
and SendableChooser
.
SmartDashboardData
works by having an internal NetworkTable
that it should both
keep up-to-date and respond to. Also, SmartDashboardData
requires a string to identify what type it is
(ie. "Gyro", "PIDController", "Command", "Subsystem", etc...)
Users can define their own SmartDashboardData
, but they will have to also make an extension to the SmartDashboard
which can handle their new type
SmartDashboard
Method Summary | |
---|---|
NetworkTable |
getTable()
Returns the NetworkTable associated with the data. |
java.lang.String |
getType()
Returns the type of the data. |
Method Detail |
---|
java.lang.String getType()
getTable()
.
For instance, if the type was "Button", then the SmartDashboard would show the data
as a button on the desktop and would know to look at and modify the "pressed" field in the
NetworkTable
returned by getTable()
.
NetworkTable getTable()
NetworkTable
associated with the data.
The table should contain all the information the desktop version of SmartDashboard needs
to interact with the object. The data should both keep the table up-to-date and also react
to changes that the SmartDashboard might make.
For instance, the SendablePIDController
will put its p, i and d values into its table
and will change them if the table receives new values.
This method should return the same table between calls
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |