Class ElevateXCmd<T extends TagalongSubsystemBase & ElevatorAugment>

All Implemented Interfaces:
Sendable

Command that raises elevator by a target height based on specified parameters.
  • Constructor Details

    • ElevateXCmd

      public ElevateXCmd(T elevator, Height relativeMovementM)
      Constructor that creates the command with the below parameters.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, Height relativeMovementM)
      Constructor that creates the command with the below parameters.
      Parameters:
      id - Tagalong Subsystem containing an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
    • ElevateXCmd

      public ElevateXCmd(T elevator, Height relativeMovementM, boolean holdPositionAfter)
      Constructor that creates the command with the below parameters.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, Height relativeMovementM, boolean holdPositionAfter)
      Constructor that creates the command with the below parameters.
      Parameters:
      id - Tagalong Subsystem containing an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
    • ElevateXCmd

      public ElevateXCmd(T elevator, Height relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS)
      Constructor that creates the command with the below parameters.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, Height relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS)
      Constructor that creates the command with the below parameters.
      Parameters:
      id - Tagalong Subsystem containing an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
    • ElevateXCmd

      public ElevateXCmd(T elevator, Height relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS, double toleranceM)
      Constructor that creates the command with the below parameters.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      toleranceM - the desired tolerance for height, in meters
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, Height relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS, double toleranceM)
      Constructor that creates the command with the below parameters.
      Parameters:
      id - Tagalong Subsystem containing an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      toleranceM - the desired tolerance for height, in meters
    • ElevateXCmd

      public ElevateXCmd(T elevator, Height relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS, double lowerToleranceM, double upperToleranceM)
      Constructor that creates the command with the below parameters.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      lowerToleranceM - the lower bound for height tolerance, in meters
      upperToleranceM - the upper bound for height tolerance, in meters
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, Height relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS, double lowerToleranceM, double upperToleranceM)
      Constructor that creates the command with the below parameters.
      Parameters:
      id - Tagalong Subsystem containing an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      lowerToleranceM - the lower bound for height tolerance, in meters
      upperToleranceM - the upper bound for height tolerance, in meters
    • ElevateXCmd

      public ElevateXCmd(T elevator, Height relativeMovement, boolean holdPositionAfter, double maxVelocityMPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS)
      Constructor that creates the command with the below parameters.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovement - the target amount to move
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      lowerToleranceM - the lower bound for height tolerance, in meters
      upperToleranceM - the upper bound for height tolerance, in meters
      requiredInToleranceDurationS - the duration (in seconds) the elevator must stay in tolerance
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, Height relativeMovement, boolean holdPositionAfter, double maxVelocityMPS, double lowerToleranceM, double upperToleranceM, double requiredInToleranceDurationS)
      Constructor that creates the command with the below parameters.
      Parameters:
      id - Tagalong Subsystem containing an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovement - the target amount to move
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      lowerToleranceM - the lower bound for height tolerance, in meters
      upperToleranceM - the upper bound for height tolerance, in meters
      requiredInToleranceDurationS - the duration (in seconds) the elevator must stay in tolerance
    • ElevateXCmd

      public ElevateXCmd(T elevator, double relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS, 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:
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      lowerToleranceM - the lower bound for height tolerance, in meters
      upperToleranceM - the upper bound for height tolerance, in meters
      requiredInToleranceDurationS - the duration (in seconds) the elevator must stay in tolerance
    • ElevateXCmd

      public ElevateXCmd(int id, T elevator, double relativeMovementM, boolean holdPositionAfter, double maxVelocityMPS, 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 an elevator microsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      relativeMovementM - the target amount to move, in meters
      holdPositionAfter - whether or not the elevator must hold position after reaching target
      maxVelocityMPS - maximum velocity, in meters per second, the elevator can move
      lowerToleranceM - the lower bound for height tolerance, in meters
      upperToleranceM - the upper bound for height tolerance, in meters
      requiredInToleranceDurationS - the duration (in seconds) the elevator must stay in tolerance
  • Method Details