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 TypeMethodDescriptionvoid
autoGenerateLogs
(edu.wpi.first.util.datalog.DataLog log, String name, String subdirName, boolean publishToNT, boolean recordInLog) Auto-generatesLogger
s for important internal values.static BaseHardwareLogger
Returns the singleton instance of BaseHardwareLogger.void
Updates the internally generated Loggers.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:IntrinsicLoggable
Auto-generatesLogger
s for important internal values.- Specified by:
autoGenerateLogs
in 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:IntrinsicLoggable
Updates the internally generated Loggers.- Specified by:
updateLogs
in interfaceIntrinsicLoggable
-