Class LoggedNetworkInput
java.lang.Object
org.littletonrobotics.junction.networktables.LoggedNetworkInput
- Direct Known Subclasses:
LoggedDashboardChooser,LoggedNetworkBoolean,LoggedNetworkNumber,LoggedNetworkString
Base class for periodic dashboard inputs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidperiodic()Update the current value and save/replay the input.protected static StringremoveSlash(String key) Removes the leading slash from a key.
-
Field Details
-
prefix
The subtable prefix for input logging.- See Also:
-
-
Constructor Details
-
LoggedNetworkInput
protected LoggedNetworkInput()Creates a new LoggedNetworkInput.
-
-
Method Details
-
periodic
public abstract void periodic()Update the current value and save/replay the input. This function should never be called by user code. -
removeSlash
Removes the leading slash from a key.- Parameters:
key- The input key that may include a leading slash.- Returns:
- The output key without a leading slash.
-