Class LoggedNetworkInput

java.lang.Object
org.littletonrobotics.junction.networktables.LoggedNetworkInput
Direct Known Subclasses:
LoggedDashboardChooser, LoggedNetworkBoolean, LoggedNetworkNumber, LoggedNetworkString

public abstract class LoggedNetworkInput extends Object
Base class for periodic dashboard inputs.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    The subtable prefix for input logging.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a new LoggedNetworkInput.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Update the current value and save/replay the input.
    protected static String
    Removes the leading slash from a key.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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

      protected static String removeSlash(String key)
      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.