Class SwerveSteeringMaintainerCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
xbot.common.command.BaseCommand
xbot.common.command.BaseMaintainerCommand<Double>
xbot.common.subsystems.drive.swerve.commands.SwerveSteeringMaintainerCommand
- All Implemented Interfaces:
Sendable,IPropertySupport
-
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
ConstructorsConstructorDescriptionSwerveSteeringMaintainerCommand(SwerveSteeringSubsystem subsystemToMaintain, PropertyFactory pf, HumanVsMachineDecider.HumanVsMachineDeciderFactory hvmFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThe calibrated machine control action.protected voidThe coast action.voidend(boolean interrupted) protected doubleprotected doubleGets the human input to use for the maintain command.protected doubleGets the magnitude of the human input to use for the maintain command, since the generic type T may not be a number.voidMethods inherited from class xbot.common.command.BaseMaintainerCommand
additionalAtGoalChecks, execute, getErrorWithinTolerance, humanControlAction, initializeMachineControlAction, isMaintainerAtGoal, maintain, resetDecider, runsWhenDisabled, setErrorTolerance, uncalibratedMachineControlActionMethods inherited from class xbot.common.command.BaseCommand
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
-
SwerveSteeringMaintainerCommand
@Inject public SwerveSteeringMaintainerCommand(SwerveSteeringSubsystem subsystemToMaintain, PropertyFactory pf, HumanVsMachineDecider.HumanVsMachineDeciderFactory hvmFactory)
-
-
Method Details
-
coastAction
protected void coastAction()Description copied from class:BaseMaintainerCommandThe coast action. Typically, this does nothing.- Specified by:
coastActionin classBaseMaintainerCommand<Double>
-
calibratedMachineControlAction
protected void calibratedMachineControlAction()Description copied from class:BaseMaintainerCommandThe calibrated machine control action.- Specified by:
calibratedMachineControlActionin classBaseMaintainerCommand<Double>
-
getErrorMagnitude
protected double getErrorMagnitude()- Specified by:
getErrorMagnitudein classBaseMaintainerCommand<Double>
-
getHumanInput
protected double getHumanInput()Description copied from class:BaseMaintainerCommandGets the human input to use for the maintain command.- Specified by:
getHumanInputin classBaseMaintainerCommand<Double>- Returns:
- The human input.
-
getHumanInputMagnitude
protected double getHumanInputMagnitude()Description copied from class:BaseMaintainerCommandGets the magnitude of the human input to use for the maintain command, since the generic type T may not be a number.- Specified by:
getHumanInputMagnitudein classBaseMaintainerCommand<Double>- Returns:
- The magnitude of the human input.
-
initialize
public void initialize()- Overrides:
initializein classBaseMaintainerCommand<Double>
-
end
public void end(boolean interrupted) - Overrides:
endin classBaseCommand
-