Class AbstractSubsystemConfig

java.lang.Object
frc.robot.shared.config.AbstractConfig
frc.robot.shared.config.AbstractSubsystemConfig
Direct Known Subclasses:
AbstractMotorSubsystemConfig, AprilTagVisionSubsystemConfig, DriveBaseSubsystemConfig, GameplayStateSubsystemConfig, RobotPoseSubsystemConfig

public abstract class AbstractSubsystemConfig extends AbstractConfig
Configuration base class for subsystems that adds enable and verbose flags on top of the tunable infrastructure provided by AbstractConfig.

All subsystem config classes should extend this class to inherit the enabled and verbose flags. Non-subsystem configs (motor hardware descriptors, nested config bundles like PidConfig and FeedforwardConfig) should extend AbstractConfig directly since they do not represent independently-toggleable subsystems.

  • Field Details

    • enabled

      public boolean enabled
      Enables or disables the subsystem that owns this config.

      Set this in JSON to fully skip hardware actions when a mechanism is not ready.

    • verbose

      public boolean verbose
      Enables verbose logging for the subsystem that owns this config.

      Use this during tuning to print extra debug information.

  • Constructor Details

    • AbstractSubsystemConfig

      public AbstractSubsystemConfig()
  • Method Details

    • getVerbose

      public boolean getVerbose()
      Returns whether verbose logging is enabled, tuned via SmartDashboard.

      Toggle this at runtime from the dashboard to enable or disable detailed telemetry without redeploying code.

      Returns:
      true when verbose logging is enabled