Package tagalong.commands.base
Class RollXCmd<T extends TagalongSubsystemBase & RollerAugment>
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
tagalong.commands.TagalongCommand
tagalong.commands.base.RollXCmd<T>
- All Implemented Interfaces:
- Sendable
Command that rotates roller by a target angle based on specified
 parameters.
- 
Nested Class SummaryNested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.CommandCommand.InterruptionBehavior
- 
Constructor SummaryConstructorsConstructorDescriptionRollXCmd(int id, T roller, double relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interactConstructor that creates the command with the below parameters.Constructor that creates the command with the below parameters.RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS) Constructor that creates the command with the below parameters.RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double toleranceM) Constructor that creates the command with the below parameters.RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM) Constructor that creates the command with the below parameters.RollXCmd(int id, T roller, Angle relativeMovement, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.RollXCmd(T roller, double relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interactConstructor that creates the command with the below parameters.Constructor that creates the command with the below parameters.Constructor that creates the command with the below parameters.RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double toleranceM) Constructor that creates the command with the below parameters.RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM) Constructor that creates the command with the below parameters.RollXCmd(T roller, Angle relativeMovement, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.
- 
Method SummaryMethods inherited from class tagalong.commands.TagalongCommandanonymizeMethods inherited from class edu.wpi.first.wpilibj2.command.CommandaddRequirements, 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- 
RollXCmdConstructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
 
- 
RollXCmdConstructor that creates the command with the below parameters.- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
 
- 
RollXCmdConstructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
 
- 
RollXCmdConstructor that creates the command with the below parameters.- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
 
- 
RollXCmdpublic RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
 
- 
RollXCmdpublic RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS) Constructor that creates the command with the below parameters.- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
 
- 
RollXCmdpublic RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double toleranceM) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- toleranceM- the desired tolerance for angle, in rotations
 
- 
RollXCmdpublic RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double toleranceM) Constructor that creates the command with the below parameters.- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- toleranceM- the desired tolerance for angle, in rotations
 
- 
RollXCmdpublic RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- lowerToleranceM- the lower bound for angle tolerance, in rotations
- upperToleranceM- the upper bound for angle tolerance, in rotations
 
- 
RollXCmdpublic RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM) Constructor that creates the command with the below parameters.- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- The target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- lowerToleranceM- the lower bound for angle tolerance, in rotations
- upperToleranceM- the upper bound for angle tolerance, in rotations
 
- 
RollXCmdpublic RollXCmd(T roller, Angle relativeMovement, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovement- the target amount to move
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- lowerToleranceM- the lower bound for angle tolerance, in rotations
- upperToleranceM- the upper bound for angle tolerance, in rotations
- requiredInToleranceDurationS- the duration (in seconds) the roller must stay in tolerance
 
- 
RollXCmdpublic RollXCmd(int id, T roller, Angle relativeMovement, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovement- the target amount to move
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- lowerToleranceM- the lower bound for angle tolerance, in rotations
- upperToleranceM- the upper bound for angle tolerance, in rotations
- requiredInToleranceDurationS- the duration (in seconds) the roller must stay in tolerance
 
- 
RollXCmdpublic RollXCmd(T roller, double relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interact- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- the target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- lowerToleranceM- the lower bound for angle tolerance, in rotations
- upperToleranceM- the upper bound for angle tolerance, in rotations
- requiredInToleranceDurationS- the duration (in seconds) the roller must stay in tolerance
 
- 
RollXCmdpublic RollXCmd(int id, T roller, double relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interact- Parameters:
- id- Tagalong Subsystem containing a roller microsystem
- roller- Tagalong Subsystem containing a roller microsystem
- relativeMovementRot- the target amount to move, in rotations
- holdPositionAfter- whether or not the roller must hold position after reaching target
- maxVelocityRPS- maximum velocity, in rotations per second, the roller can move
- lowerToleranceM- the lower bound for angle tolerance, in rotations
- upperToleranceM- the upper bound for angle tolerance, in rotations
- requiredInToleranceDurationS- the duration (in seconds) the roller must stay in tolerance
 
 
- 
- 
Method Details- 
initialize- Overrides:
- initializein class- Command
 
- 
execute
- 
end
- 
isFinished- Overrides:
- isFinishedin class- Command
 
 
-