Package xbot.common.command
Class BaseSimpleMaintainerCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
xbot.common.command.BaseCommand
xbot.common.command.BaseMaintainerCommand<Double,Double>
xbot.common.command.BaseSimpleMaintainerCommand
- All Implemented Interfaces:
Sendable,IPropertySupport
- 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 edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
Fields inherited from class xbot.common.command.BaseMaintainerCommand
decider, errorTimeStableWindowProp, errorToleranceProp, timeStableValidatorFields inherited from class xbot.common.command.BaseCommand
aKitLog, log, monitor, runningAlert -
Constructor Summary
ConstructorsConstructorDescriptionBaseSimpleMaintainerCommand(BaseSetpointSubsystem<Double, Double> subsystemToMaintain, PropertyFactory pf, HumanVsMachineDecider.HumanVsMachineDeciderFactory humanVsMachineDeciderFactory, double defaultErrorTolerance, double defaultTimeStableWindow) Creates a new maintainer command. -
Method Summary
Methods inherited from class xbot.common.command.BaseMaintainerCommand
additionalAtGoalChecks, calibratedMachineControlAction, coastAction, execute, getErrorMagnitude, getErrorWithinTolerance, getHumanInput, getHumanInputMagnitude, humanControlAction, initialize, initializeMachineControlAction, isMaintainerAtGoal, maintain, resetDecider, runsWhenDisabled, setErrorTolerance, uncalibratedMachineControlActionMethods inherited from class xbot.common.command.BaseCommand
end, getPrefix, includeOnSmartDashboard, includeOnSmartDashboard, requires, setRunsWhenDisabledMethods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
BaseSimpleMaintainerCommand
public BaseSimpleMaintainerCommand(BaseSetpointSubsystem<Double, Double> subsystemToMaintain, PropertyFactory pf, HumanVsMachineDecider.HumanVsMachineDeciderFactory humanVsMachineDeciderFactory, double defaultErrorTolerance, double defaultTimeStableWindow) Creates a new maintainer command.- Parameters:
subsystemToMaintain- The subsystem to maintain.pf- The property factory to use for creating properties.humanVsMachineDeciderFactory- The decider factory to use for creating the decider.defaultErrorTolerance- The default error tolerance.defaultTimeStableWindow- The default time stable window.
-