Package frc.spectrumLib
Class Telemetry
java.lang.Object
dev.doglog.DogLog
frc.spectrumLib.Telemetry
- All Implemented Interfaces:
Subsystem
Telemetry and logging utility. Extends DogLog to provide structured logging and console output
with priority levels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumPriority levels for printing to the console NORMAL: Low priority, only print if enabled HIGH: High priority, always print -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Commandstatic voidvoidperiodic()static voidstatic voidprint(String output, Telemetry.PrintPriority priority) Print a statement if they are enabledstatic voidstart(boolean ntPublish, boolean captureDs, boolean captureNt, boolean captureConsole, boolean logExtras, Telemetry.PrintPriority priority) Start the telemetry system.Methods inherited from class dev.doglog.DogLog
clearFault, clearFault, decreaseFault, decreaseFault, faultsActive, faultsLogged, getOptions, isEnabled, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, log, logFault, logFault, logFault, setEnabled, setOptions, setPdh, time, time, timeEnd, timestamp, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunable, tunableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, getName, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
Telemetry
public Telemetry()
-
-
Method Details
-
periodic
public void periodic() -
start
public static void start(boolean ntPublish, boolean captureDs, boolean captureNt, boolean captureConsole, boolean logExtras, Telemetry.PrintPriority priority) Start the telemetry system.- Parameters:
ntPublish- Whether to publish to NetworkTables.captureNt- Whether to capture NetworkTables entries in the log.captureDs- Whether to capture SmartDashboard entries in the log.captureConsole- Whether to capture console output in the log.logExtras- Whether to log extra data, like PDH currents, CAN usage, radio connection status, etc.priority- The minimum priority level for console output.
-
log
-
print
Print a statement if they are enabled -
print
-
logAlerts
public static void logAlerts()
-