Class BaseSimpleMaintainerCommand
java.lang.Object
org.wpilib.command2.Command
xbot.common.command.BaseCommand
xbot.common.command.BaseMaintainerCommand<Double,Double>
xbot.common.command.BaseSimpleMaintainerCommand
- All Implemented Interfaces:
AutoCloseable, org.wpilib.telemetry.TelemetryLoggable, org.wpilib.tunable.ComplexTunable, TunablePrefixProvider
- Direct Known Subclasses:
SwerveDriveMaintainerCommand, SwerveSteeringMaintainerCommand
A base class for maintainer commands that use simple Double values for both current and target values.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wpilib.command2.Command
org.wpilib.command2.Command.InterruptionBehavior -
Field Summary
Fields inherited from class BaseMaintainerCommand
decider, errorTimeStableWindowTunable, errorToleranceTunable, timeStableValidatorFields inherited from class BaseCommand
aKitLog, log, monitor, runningAlert -
Constructor Summary
ConstructorsConstructorDescriptionBaseSimpleMaintainerCommand(BaseSetpointSubsystem<Double, Double> subsystemToMaintain, TunableFactory tunableFactory, HumanVsMachineDecider.HumanVsMachineDeciderFactory humanVsMachineDeciderFactory, double defaultErrorTolerance, double defaultTimeStableWindow) Creates a new maintainer command.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. -
Method Summary
Methods inherited from class BaseMaintainerCommand
additionalAtGoalChecks, calibratedMachineControlAction, coastAction, execute, getErrorMagnitude, getErrorWithinTolerance, getHumanInput, getHumanInputMagnitude, humanControlAction, initialize, initializeMachineControlAction, isMaintainerAtGoal, maintain, resetDecider, runsWhenDisabled, setErrorTolerance, uncalibratedMachineControlActionMethods inherited from class BaseCommand
close, end, getPrefix, publishToTunables, publishToTunables, setRunsWhenDisabledMethods inherited from class org.wpilib.command2.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getTelemetryType, getTunableType, handleInterrupt, hasRequirement, ignoringDisable, isFinished, isScheduled, logTo, onlyIf, onlyWhile, publishTunable, raceWith, repeatedly, setName, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.tunable.ComplexTunable
publishChildTunable, publishChildTunable, removeChildTunable, setChildTunableChanged, updateTunable
-
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.
-