Class ElevateToDynamicCmd<T extends TagalongSubsystemBase & ElevatorAugment>

All Implemented Interfaces:
Sendable

Command for the elevator to continuously move towards the goal supplier's target height
  • Constructor Details

    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(int id, T elevator, DoubleSupplier goalSupplierM, boolean holdPositionAfter, double maxVelocityMPS, BooleanSupplier startSupplier)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      id - Integer ID of the elevator microsystem inside the Tagalong Subsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
      holdPositionAfter - If the elevator should hold position when the command completes
      maxVelocityMPS - Maximum velocity for the elevator during this command
      startSupplier - BooleanSupplier condition for movement to start, defaults to elevator::isSafeToMove
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(T elevator, DoubleSupplier goalSupplierM, boolean holdPositionAfter, double maxVelocityMPS, BooleanSupplier startSupplier)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
      holdPositionAfter - If the elevator should hold position when the command completes
      maxVelocityMPS - Maximum velocity for the elevator during this command
      startSupplier - BooleanSupplier condition for movement to start, defaults to elevator::isSafeToMove
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(int id, T elevator, DoubleSupplier goalSupplierM, boolean holdPositionAfter, double maxVelocityMPS)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      id - Integer ID of the elevator microsystem inside the Tagalong Subsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
      holdPositionAfter - If the elevator should hold position when the command completes
      maxVelocityMPS - Maximum velocity for the elevator during this command
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(T elevator, DoubleSupplier goalSupplierM, boolean holdPositionAfter, double maxVelocityMPS)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
      holdPositionAfter - If the elevator should hold position when the command completes
      maxVelocityMPS - Maximum velocity for the elevator during this command
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(int id, T elevator, DoubleSupplier goalSupplierM, boolean holdPositionAfter)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      id - Integer ID of the elevator microsystem inside the Tagalong Subsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
      holdPositionAfter - If the elevator should hold position when the command completes
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(T elevator, DoubleSupplier goalSupplierM, boolean holdPositionAfter)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
      holdPositionAfter - If the elevator should hold position when the command completes command
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(int id, T elevator, DoubleSupplier goalSupplierM)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      id - Integer ID of the elevator microsystem inside the Tagalong Subsystem
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
    • ElevateToDynamicCmd

      public ElevateToDynamicCmd(T elevator, DoubleSupplier goalSupplierM)
      Continuously move to the double suppliers target position. The function is continuous, it has no end condition, so the user must interrupt the command or decorate the command with an end condition. Useful for dynamic movements that are dependent on sensor readings, field conditions, or driver configurations.
      Parameters:
      elevator - Tagalong Subsystem containing an elevator microsystem
      goalSupplierM - DoubleSupplier for the elevator height
  • Method Details