Class Telemetry

java.lang.Object
dev.doglog.DogLog
frc.spectrumLib.Telemetry
All Implemented Interfaces:
Subsystem

public class Telemetry extends DogLog implements Subsystem
Telemetry and logging utility. Extends DogLog to provide structured logging and console output with priority levels.
  • Constructor Details

    • Telemetry

      public Telemetry()
  • Method Details

    • periodic

      public void periodic()
      Specified by:
      periodic in interface Subsystem
    • 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

      public static Command log(Command cmd)
    • print

      public static void print(String output, Telemetry.PrintPriority priority)
      Print a statement if they are enabled
    • print

      public static void print(String output)
    • logAlerts

      public static void logAlerts()