Class BaseHardwareLogger

java.lang.Object
org.chsrobotics.lib.telemetry.BaseHardwareLogger
All Implemented Interfaces:
IntrinsicLoggable

public class BaseHardwareLogger extends Object implements IntrinsicLoggable
IntrinsicLoggable class for logging of basic RoboRio data (e.g. bus currents and voltages).
  • Method Details

    • getInstance

      public static BaseHardwareLogger getInstance()
      Returns the singleton instance of BaseHardwareLogger.
      Returns:
      The instance of BaseHardwareLogger.
    • autoGenerateLogs

      public void autoGenerateLogs(edu.wpi.first.util.datalog.DataLog log, String name, String subdirName, boolean publishToNT, boolean recordInLog)
      Description copied from interface: IntrinsicLoggable
      Auto-generates Loggers for important internal values.
      Specified by:
      autoGenerateLogs in interface IntrinsicLoggable
      Parameters:
      log - The DataLog to log values inside of, most likely from HighLevelLogger.getLog() or whatever log is being used program-wide.
      name - The name to associate with this object's logged data.
      subdirName - The string name of the existing or new NetworkTables sub-table to write to.
      publishToNT - Whether this should push logged values to NetworkTables.
      recordInLog - Whether this should store logged values in an on-robot log file.
    • updateLogs

      public void updateLogs()
      Description copied from interface: IntrinsicLoggable
      Updates the internally generated Loggers.
      Specified by:
      updateLogs in interface IntrinsicLoggable