Class RollToDynamicCmd<T extends TagalongSubsystemBase & RollerAugment>

All Implemented Interfaces:
Sendable
Direct Known Subclasses:
RollerAimAtCmd, RollerAimAtYawCompCmd

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

    • RollToDynamicCmd

      public RollToDynamicCmd(int id, T roller, DoubleSupplier goalSupplierRot, boolean holdPositionAfter, double maxVelocityRPS)
      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 roller microsystem inside the Tagalong Subsystem
      roller - Tagalong Subsystem containing an roller microsystem
      goalSupplierRot - DoubleSupplier for the roller height
      holdPositionAfter - If the roller should hold position when the command completes
      maxVelocityRPS - Maximum velocity for the roller during this command
    • RollToDynamicCmd

      public RollToDynamicCmd(T roller, DoubleSupplier goalSupplierRot, boolean holdPositionAfter, double maxVelocityRPS)
      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:
      roller - Tagalong Subsystem containing an roller microsystem
      goalSupplierRot - DoubleSupplier for the roller height
      holdPositionAfter - If the roller should hold position when the command completes
      maxVelocityRPS - Maximum velocity for the roller during this command
    • RollToDynamicCmd

      public RollToDynamicCmd(int id, T roller, DoubleSupplier goalSupplierRot, 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 roller microsystem inside the Tagalong Subsystem
      roller - Tagalong Subsystem containing an roller microsystem
      goalSupplierRot - DoubleSupplier for the roller height
      holdPositionAfter - If the roller should hold position when the command completes
    • RollToDynamicCmd

      public RollToDynamicCmd(T roller, DoubleSupplier goalSupplierRot, 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:
      roller - Tagalong Subsystem containing an roller microsystem
      goalSupplierRot - DoubleSupplier for the roller height
      holdPositionAfter - If the roller should hold position when the command completes command
    • RollToDynamicCmd

      public RollToDynamicCmd(int id, T roller, DoubleSupplier goalSupplierRot)
      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 roller microsystem inside the Tagalong Subsystem
      roller - Tagalong Subsystem containing an roller microsystem
      goalSupplierRot - DoubleSupplier for the roller height
    • RollToDynamicCmd

      public RollToDynamicCmd(T roller, DoubleSupplier goalSupplierRot)
      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:
      roller - Tagalong Subsystem containing an roller microsystem
      goalSupplierRot - DoubleSupplier for the roller height
  • Method Details