Package frc.robot.shared.config
Class AbstractSubsystemConfig
java.lang.Object
frc.robot.shared.config.AbstractConfig
frc.robot.shared.config.AbstractSubsystemConfig
- Direct Known Subclasses:
AbstractMotorSubsystemConfig,AprilTagVisionSubsystemConfig,DriveBaseSubsystemConfig,GameplayStateSubsystemConfig,RobotPoseSubsystemConfig
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class frc.robot.shared.config.AbstractConfig
AbstractConfig.ComponentPoseConfig -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether verbose logging is enabled, tuned via SmartDashboard.Methods inherited from class frc.robot.shared.config.AbstractConfig
getDashboardPrefix, initializeNestedDashboardPrefixes, readTunableBoolean, readTunableDegrees, readTunableDegreesAsRadians, readTunableNumber, readTunableString, setDashboardPrefix
-
Field Details
-
enabled
public boolean enabledEnables 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 verboseEnables 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
-