Package tagalong.commands.base
Class RollToCmd<T extends TagalongSubsystemBase & RollerAugment>
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
tagalong.commands.TagalongCommand
tagalong.commands.base.RollToCmd<T>
- All Implemented Interfaces:
- Sendable
Command that moves the roller absolutely to the desired position
- 
Nested Class SummaryNested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.CommandCommand.InterruptionBehavior
- 
Constructor SummaryConstructorsConstructorDescriptionRollToCmd(int id, T roller, double goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interactConstructor with default to hold position afterConstructor that creates the command with the below parameters.Constructor that creates the command with the below parameters.RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double toleranceRot) Constructor that creates the command with the below parameters.RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot) Constructor that creates the command with the below parameters.RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.RollToCmd(T roller, double goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interactConstructor with default to hold position afterConstructor that creates the command with the below parameters.Constructor that creates the command with the below parameters.RollToCmd(T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double toleranceRot) Constructor that creates the command with the below parameters.RollToCmd(T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot) Constructor that creates the command with the below parameters.RollToCmd(T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, 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- 
RollToCmdConstructor with default to hold position after- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
 
- 
RollToCmdConstructor with default to hold position after- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
 
- 
RollToCmdConstructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
 
- 
RollToCmdConstructor that creates the command with the below parameters.- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
 
- 
RollToCmdConstructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
 
- 
RollToCmdpublic RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS) Constructor that creates the command with the below parameters.- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
 
- 
RollToCmdpublic RollToCmd(T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double toleranceRot) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- toleranceRot- The number of rotations short of or beyond the target position the roller can be while still being considered in tolerance
 
- 
RollToCmdpublic RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double toleranceRot) Constructor that creates the command with the below parameters.- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- toleranceRot- The number of rotations short of or beyond the target position the roller can be while still being considered in tolerance
 
- 
RollToCmdpublic RollToCmd(T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- lowerToleranceRot- The number of rotations short of the target position the roller can be while still being considered in tolerance
- upperToleranceRot- The number of rotations beyond the target position the roller can be while still being considered in tolerance
 
- 
RollToCmdpublic RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot) Constructor that creates the command with the below parameters.- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- lowerToleranceRot- The number of rotations short of the target position the roller can be while still being considered in tolerance
- upperToleranceRot- The number of rotations beyond the target position the roller can be while still being considered in tolerance
 
- 
RollToCmdpublic RollToCmd(T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.- Parameters:
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- upperToleranceRot- The number of rotations beyond the target position the roller can be while still being considered in tolerance
- lowerToleranceRot- The number of rotations short of the target position the roller can be while still being considered in tolerance
- requiredInToleranceDurationS- The number of seconds that being in tolerance is required for
 
- 
RollToCmdpublic RollToCmd(int id, T roller, Angle goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, double requiredInToleranceDurationS) Constructor that creates the command with the below parameters.- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- lowerToleranceRot- The number of rotations short of the target position the roller can be while still being considered in tolerance
- upperToleranceRot- The number of rotations beyond the target position the roller can be while still being considered in tolerance
- requiredInToleranceDurationS- The number of seconds that being in tolerance is required for
 
- 
RollToCmdpublic RollToCmd(T roller, double goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, 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
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- lowerToleranceRot- The number of rotations short of the target position the roller can be while still being considered in tolerance
- upperToleranceRot- The number of rotations beyond the target position the roller can be while still being considered in tolerance
- requiredInToleranceDurationS- The number of seconds that being in tolerance is required for
 
- 
RollToCmdpublic RollToCmd(int id, T roller, double goalPosition, boolean holdPositionAfter, double maxVelocityRPS, double lowerToleranceRot, double upperToleranceRot, double requiredInToleranceDurationS) Full constructor, allows for double for goal in rare cases of advance use needing a direct way to interact- Parameters:
- id- The roller integer ID
- roller- Tagalong Subsystem containing a roller microsystem
- goalPosition- Goal roller position
- holdPositionAfter- If the roller should hold position when the command completes
- maxVelocityRPS- The maximum velocity of the roller, in rotations per second, during this command
- lowerToleranceRot- The number of rotations short of the target position the roller can be while still being considered in tolerance
- upperToleranceRot- The number of rotations beyond the target position the roller can be while still being considered in tolerance
- requiredInToleranceDurationS- The number of seconds that being in tolerance is required for
 
 
- 
- 
Method Details- 
initialize- Overrides:
- initializein class- Command
 
- 
execute
- 
end
- 
isFinished- Overrides:
- isFinishedin class- Command
 
 
-