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
ConstructorsConstructorDescriptionSmartString(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 onSmartDashboardwill be reset to the default value on initialization.- Parameters:
id- the name of the String onSmartDashboardvalue- the default / initialization value for the value
-
-
Method Details
-
get
-
getDefault
- Returns:
- the default value of the String
-
set
- Parameters:
value- what the value onSmartDashboardwill be set to
-
reset
public void reset()Resets the value onSmartDashboardto the default value
-