Class RollXCmd<T extends TagalongSubsystemBase & RollerAugment>

All Implemented Interfaces:
Sendable

Command that rotates roller by a target angle based on specified parameters.
  • Nested Class Summary

    Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command

    Command.InterruptionBehavior
  • Constructor Summary

    Constructors
    Constructor
    Description
    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
    RollXCmd(int id, T roller, Angle relativeMovementRot)
    Constructor that creates the command with the below parameters.
    RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter)
    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 interact
    RollXCmd(T roller, Angle relativeMovementRot)
    Constructor that creates the command with the below parameters.
    RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter)
    Constructor that creates the command with the below parameters.
    RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter, double maxVelocityRPS)
    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 Summary

    Modifier and Type
    Method
    Description
    void
    end(boolean interrupted)
     
    void
     
    void
     
    boolean
     

    Methods inherited from class tagalong.commands.TagalongCommand

    anonymize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RollXCmd

      public RollXCmd(T roller, Angle relativeMovementRot)
      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
    • RollXCmd

      public RollXCmd(int id, T roller, Angle relativeMovementRot)
      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
    • RollXCmd

      public RollXCmd(T roller, Angle relativeMovementRot, boolean holdPositionAfter)
      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
    • RollXCmd

      public RollXCmd(int id, T roller, Angle relativeMovementRot, boolean holdPositionAfter)
      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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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
    • RollXCmd

      public 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