Class TrcPidConveyor.Parameters

java.lang.Object
trclib.subsystem.TrcPidConveyor.Parameters
Enclosing class:
TrcPidConveyor

public static class TrcPidConveyor.Parameters extends Object
This class contains all the parameters related to the conveyor.
  • Field Details

    • objectDistance

      public double objectDistance
    • movePower

      public double movePower
    • maxCapacity

      public int maxCapacity
  • Constructor Details

    • Parameters

      public Parameters()
  • Method Details

    • toString

      public String toString()
      This method returns the string format of the PID conveyor parameters.
      Overrides:
      toString in class Object
      Returns:
      string format of the parameters.
    • setObjectDistance

      public TrcPidConveyor.Parameters setObjectDistance(double distance)
      This method sets the distance between objects inside the converyor.
      Parameters:
      distance - specifies the distance between objects in the conveyor.
      Returns:
      this parameter object.
    • setMovePower

      public TrcPidConveyor.Parameters setMovePower(double power)
      This method sets the conveyor move power.
      Parameters:
      power - specifies the motor power to move the object in the conveyor.
      Returns:
      this parameter object.
    • setMaxCapacity

      public TrcPidConveyor.Parameters setMaxCapacity(int capacity)
      This method sets the maximum number of objects the conveyor can hold.
      Parameters:
      capacity - specifies maximum number of objects the conveyor can hold.
      Returns:
      this parameter object.