Package tagalong.commands.base
Class ElevatorZeroCmd<T extends TagalongSubsystemBase & ElevatorAugment>
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
tagalong.commands.TagalongCommand
tagalong.commands.base.ElevatorZeroCmd<T>
- All Implemented Interfaces:
Sendable
public class ElevatorZeroCmd<T extends TagalongSubsystemBase & ElevatorAugment>
extends TagalongCommand
Command that finds the elevator zero position and sets the encoder position
to zero.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionElevatorZeroCmd
(int id, T elevator) Construct the command according to the below parameters.ElevatorZeroCmd
(T elevator) Construct the command according to the below parameters. -
Method Summary
Methods inherited from class tagalong.commands.TagalongCommand
anonymize
Methods 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, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
ElevatorZeroCmd
Construct the command according to the below parameters.- Parameters:
elevator
- the elevator subsystem
-
ElevatorZeroCmd
Construct the command according to the below parameters.- Parameters:
id
- Integer ID of the elevator microsystem inside the Tagalong Subsystemelevator
- the elevator subsystem
-
-
Method Details
-
initialize
- Overrides:
initialize
in classCommand
-
execute
-
end
-
isFinished
- Overrides:
isFinished
in classCommand
-