Package org.chsrobotics.lib.telemetry
Class BaseHardwareLogger
java.lang.Object
org.chsrobotics.lib.telemetry.BaseHardwareLogger
- All Implemented Interfaces:
IntrinsicLoggable
IntrinsicLoggable class for logging of basic RoboRio data (e.g. bus currents and
voltages).-
Method Summary
Modifier and TypeMethodDescriptionvoidautoGenerateLogs(edu.wpi.first.util.datalog.DataLog log, String name, String subdirName, boolean publishToNT, boolean recordInLog) Auto-generatesLoggers for important internal values.static BaseHardwareLoggerReturns the singleton instance of BaseHardwareLogger.voidUpdates the internally generated Loggers.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.chsrobotics.lib.telemetry.IntrinsicLoggable
autoGenerateLogs
-
Method Details
-
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:IntrinsicLoggableAuto-generatesLoggers for important internal values.- Specified by:
autoGenerateLogsin interfaceIntrinsicLoggable- 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:IntrinsicLoggableUpdates the internally generated Loggers.- Specified by:
updateLogsin interfaceIntrinsicLoggable
-