Class AbstractMotorSubsystemConfig

Direct Known Subclasses:
AbstractSetAndSeekSubsystemConfig, AbstractVelocitySubsystemConfig

public abstract class AbstractMotorSubsystemConfig extends AbstractSubsystemConfig
Configuration values shared by any motor-driven subsystem that uses PID control and feedforward estimation.

Concrete configs for position-based (set-and-seek) and velocity-based subsystems extend this class to inherit tunable PID and feedforward gains. Gains are organized into nested bundles: PidConfig, FeedforwardConfig, and SysIdRoutineConfig. Each bundle is surfaced to SmartDashboard under the parent subsystem's namespace (e.g., ShooterSubsystem/pid/kP).

  • Field Details

    • pid

      public PidConfig pid
      PID controller gains for this motor subsystem.
    • feedforward

      public FeedforwardConfig feedforward
      Feedforward gains for this motor subsystem.
    • sysId

      public SysIdRoutineConfig sysId
      SysId routine parameters for this motor subsystem.
    • motorConfig

      public MotorConfig motorConfig
      Motor configuration bundle for this subsystem's primary motor.
  • Constructor Details

    • AbstractMotorSubsystemConfig

      public AbstractMotorSubsystemConfig()