Package com.stuypulse.stuylib.network
Class SmartString
java.lang.Object
com.stuypulse.stuylib.network.SmartString
SmartString works as a wrapper for values on
SmartDashboard
. The idea for this class was
to make getting values on SmartDashboard
easier by making them variables that you know
were initialized.-
Constructor Summary
ConstructorDescriptionSmartString
(String id, String value) Creates a SmartString with the element name and a default value. -
Method Summary
-
Constructor Details
-
SmartString
Creates a SmartString with the element name and a default value. The value onSmartDashboard
will be reset to the default value on initialization.- Parameters:
id
- the name of the String onSmartDashboard
value
- the default / initialization value for the value
-
-
Method Details
-
get
-
getDefault
- Returns:
- the default value of the String
-
set
- Parameters:
value
- what the value onSmartDashboard
will be set to
-
reset
public void reset()Resets the value onSmartDashboard
to the default value
-