Class BaseSimpleMaintainerCommand

java.lang.Object
org.wpilib.command2.Command
All Implemented Interfaces:
AutoCloseable, org.wpilib.telemetry.TelemetryLoggable, org.wpilib.tunable.ComplexTunable, TunablePrefixProvider
Direct Known Subclasses:
SwerveDriveMaintainerCommand, SwerveSteeringMaintainerCommand

public abstract class BaseSimpleMaintainerCommand extends BaseMaintainerCommand<Double,Double>
A base class for maintainer commands that use simple Double values for both current and target values.
  • Constructor Details

    • BaseSimpleMaintainerCommand

      public BaseSimpleMaintainerCommand(BaseSetpointSubsystem<Double,Double> subsystemToMaintain, TunableFactory tunableFactory, HumanVsMachineDecider.HumanVsMachineDeciderFactory humanVsMachineDeciderFactory, double defaultErrorTolerance, double defaultTimeStableWindow)
      Creates a new maintainer command.
      Parameters:
      subsystemToMaintain - The subsystem to maintain.
      tunableFactory - The tunable factory to use for creating configuration values.
      humanVsMachineDeciderFactory - The decider factory to use for creating the decider.
      defaultErrorTolerance - The default error tolerance.
      defaultTimeStableWindow - The default time stable window.
    • BaseSimpleMaintainerCommand

      public BaseSimpleMaintainerCommand(BaseSetpointSubsystem<Double,Double> subsystemToMaintain, TunableFactory tunableFactory, HumanVsMachineDecider.HumanVsMachineDeciderFactory humanVsMachineDeciderFactory, double defaultErrorTolerance, double defaultTimeStableWindow, String tunablePrefix)
      Creates a simple maintainer with an optional tunable prefix.
      Parameters:
      subsystemToMaintain - The subsystem to maintain.
      tunableFactory - The factory for configuration values.
      humanVsMachineDeciderFactory - The factory for the decider.
      defaultErrorTolerance - The default error tolerance.
      defaultTimeStableWindow - The default time stable window.
      tunablePrefix - Additional prefix, or an empty string for the default command path.